Created
June 11, 2013 13:50
-
-
Save bjrnqprs/5757009 to your computer and use it in GitHub Desktop.
Typo3 6 + ExtBase: Way to create scheduler tasks using namespace's and Extbase's CommandController.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace VENDOR\ExtName\Command; | |
class CmdNameCommandController extends \TYPO3\CMS\Extbase\Mvc\Controller\CommandController { | |
public function fooCommand($bar) { | |
echo "foo\n"; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == false) { | |
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array(); | |
} | |
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'VENDOR\\ExtName\\Command\\CmdNameCommandController'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment