本文整理汇总了PHP中TYPO3\Flow\Core\Bootstrap::setRunLevelForCommand方法的典型用法代码示例。如果您正苦于以下问题:PHP Bootstrap::setRunLevelForCommand方法的具体用法?PHP Bootstrap::setRunLevelForCommand怎么用?PHP Bootstrap::setRunLevelForCommand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\Flow\Core\Bootstrap
的用法示例。
在下文中一共展示了Bootstrap::setRunLevelForCommand方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: registerCommands
/**
* @param \TYPO3\Flow\Core\Bootstrap $bootstrap
*/
protected function registerCommands(\TYPO3\Flow\Core\Bootstrap $bootstrap)
{
$bootstrap->getCommandManager()->registerCommandController('Helhum\\Typo3Console\\Command\\CacheCommandController');
$bootstrap->getCommandManager()->registerCommandController('Helhum\\Typo3Console\\Command\\BackendCommandController');
$bootstrap->getCommandManager()->registerCommandController('Helhum\\Typo3Console\\Command\\SchedulerCommandController');
$bootstrap->getCommandManager()->registerCommandController('Helhum\\Typo3Console\\Command\\CleanupCommandController');
$bootstrap->getCommandManager()->registerCommandController('Helhum\\Typo3Console\\Command\\DocumentationCommandController');
$bootstrap->getCommandManager()->registerCommandController('Helhum\\Typo3Console\\Command\\InstallCommandController');
$bootstrap->getCommandManager()->registerCommandController('Helhum\\Typo3Console\\Command\\ConfigurationCommandController');
$bootstrap->getCommandManager()->registerCommandController('Helhum\\Typo3Console\\Command\\FrontendCommandController');
$bootstrap->setRunLevelForCommand('typo3_console:install:databasedata', RunLevel::LEVEL_MINIMAL);
$bootstrap->addBootingStepForCommand('typo3_console:install:databasedata', 'helhum.typo3console:database');
$bootstrap->setRunLevelForCommand('typo3_console:install:defaultconfiguration', RunLevel::LEVEL_FULL);
$bootstrap->setRunLevelForCommand('typo3_console:install:*', RunLevel::LEVEL_COMPILE);
$bootstrap->setRunLevelForCommand('typo3_console:cache:flush', RunLevel::LEVEL_COMPILE);
$bootstrap->addBootingStepForCommand('typo3_console:cache:flush', 'helhum.typo3console:database');
$bootstrap->setRunLevelForCommand('typo3_console:cache:*', RunLevel::LEVEL_FULL);
$bootstrap->setRunLevelForCommand('typo3_console:backend:*', RunLevel::LEVEL_MINIMAL);
$bootstrap->setRunLevelForCommand('typo3_console:documentation:*', RunLevel::LEVEL_FULL);
$bootstrap->setRunLevelForCommand('typo3_console:scheduler:*', RunLevel::LEVEL_FULL);
$bootstrap->setRunLevelForCommand('typo3_console:cleanup:*', RunLevel::LEVEL_FULL);
}