Last active
October 15, 2015 08:25
-
-
Save jaguerra/ca7467bc19b73a9c095c to your computer and use it in GitHub Desktop.
Execute CLI extbase CommandController as an admin user
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 My\MyExtension\Command; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
class MyCommandController extends \TYPO3\CMS\Extbase\Mvc\Controller\CommandController { | |
/** | |
* Make _cli_lowlevel admin for this controller... | |
*/ | |
protected $requestAdminPermissions = TRUE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why not just: