[TYPO3-mvc] [SOLVED] Re: Extbase 1.3.0 and scheduler

Bastian Waidelich bastian at typo3.org
Tue Feb 15 21:48:48 CET 2011


roberto blanko wrote:

Hi,

> Franz, Braulio, Bastian, Marc, I LOVE YOU GUYS!!!

haha, and we love roberto blanko ;)


 > Now here's the code that works

Great, thanks for sharing!


 > Anyways: I would still prefer a less hacky approach. So an official 
how to
 > use Extbase on CLI would be great.

Absolutely. Setting the PHP superglobals doesn't feel right and the 
extbase TYPO3_CONF_VARS are not meant to be accessed directly either. 
Especially they should not be changed "manually" because the format 
might change in the future (e.g. if we need to store additional data there).

But I can't think of a cleaner way that works with the current version 
of Extbase at the moment..
What do you think of a new plugin type 
"Tx_Extbase_Utility_Extension::PLUGIN_TYPE_CLI" that you can 
register/configure like usual plugins but it won't create the actual 
plugin code".

Then you'd be able to run the plugin as easy as

$configuration = array(
     'extensionName' => 'MyExt',
     'pluginName' => 'Pi1'
);
$bootstrap = t3lib_div::makeInstance('Tx_Extbase_Core_Bootstrap');
$output = $bootstrap->run('', $configuration);

and it would be really easy to implement.

Bastian


More information about the TYPO3-project-typo3v4mvc mailing list