本文整理汇总了PHP中Sequence::addStep方法的典型用法代码示例。如果您正苦于以下问题:PHP Sequence::addStep方法的具体用法?PHP Sequence::addStep怎么用?PHP Sequence::addStep使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sequence
的用法示例。
在下文中一共展示了Sequence::addStep方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addStep
/**
* @param Sequence $sequence
* @param string $stepIdentifier
* @param bool $isDummyStep
*/
protected function addStep($sequence, $stepIdentifier, $isDummyStep = FALSE)
{
switch ($stepIdentifier) {
// Part of essential sequence
case 'helhum.typo3console:coreconfiguration':
$action = $isDummyStep ? function () {
} : array('Helhum\\Typo3Console\\Core\\Booting\\Scripts', 'initializeConfigurationManagement');
$sequence->addStep(new Step('helhum.typo3console:coreconfiguration', $action));
break;
case 'helhum.typo3console:caching':
$action = $isDummyStep ? function () {
} : array('Helhum\\Typo3Console\\Core\\Booting\\Scripts', 'initializeCachingFramework');
$sequence->addStep(new Step('helhum.typo3console:caching', $action));
break;
case 'helhum.typo3console:errorhandling':
$action = $isDummyStep ? function () {
} : array('Helhum\\Typo3Console\\Core\\Booting\\Scripts', 'initializeErrorHandling');
$sequence->addStep(new Step('helhum.typo3console:errorhandling', $action));
break;
case 'helhum.typo3console:classloadercache':
$action = $isDummyStep ? function () {
} : array('Helhum\\Typo3Console\\Core\\Booting\\Scripts', 'initializeClassLoaderCaches');
$sequence->addStep(new Step('helhum.typo3console:classloadercache', $action));
break;
// Part of compiletime sequence
// Part of compiletime sequence
case 'helhum.typo3console:disablecorecaches':
$sequence->addStep(new Step('helhum.typo3console:disablecorecaches', array('Helhum\\Typo3Console\\Core\\Booting\\Scripts', 'disableCoreCaches')), 'helhum.typo3console:coreconfiguration');
break;
// Part of basic runtime
// Part of basic runtime
case 'helhum.typo3console:extensionconfiguration':
$action = $isDummyStep ? function () {
} : array('Helhum\\Typo3Console\\Core\\Booting\\Scripts', 'initializeExtensionConfiguration');
$sequence->addStep(new Step('helhum.typo3console:extensionconfiguration', $action), 'helhum.typo3console:classloadercache');
break;
case 'helhum.typo3console:enablecorecaches':
$action = $isDummyStep ? function () {
} : array('Helhum\\Typo3Console\\Core\\Booting\\Scripts', 'reEnableOriginalCoreCaches');
$sequence->addStep(new Step('helhum.typo3console:enablecorecaches', $action), 'helhum.typo3console:coreconfiguration');
break;
// Part of full runtime
// Part of full runtime
case 'helhum.typo3console:database':
$action = $isDummyStep ? function () {
} : array('Helhum\\Typo3Console\\Core\\Booting\\Scripts', 'initializeDatabaseConnection');
$sequence->addStep(new Step('helhum.typo3console:database', $action), 'helhum.typo3console:errorhandling');
break;
case 'helhum.typo3console:persistence':
$action = $isDummyStep ? function () {
} : array('Helhum\\Typo3Console\\Core\\Booting\\Scripts', 'initializePersistence');
$sequence->addStep(new Step('helhum.typo3console:persistence', $action), 'helhum.typo3console:extensionconfiguration');
break;
case 'helhum.typo3console:authentication':
$action = $isDummyStep ? function () {
} : array('Helhum\\Typo3Console\\Core\\Booting\\Scripts', 'initializeAuthenticatedOperations');
$sequence->addStep(new Step('helhum.typo3console:authentication', $action), 'helhum.typo3console:extensionconfiguration');
break;
// Legacy booting
// Legacy booting
case 'helhum.typo3console:runLegacyBootstrap':
$sequence->addStep(new Step('helhum.typo3console:runLegacyBootstrap', array('Helhum\\Typo3Console\\Core\\Booting\\Scripts', 'runLegacyBootstrap')));
break;
default:
throw new \InvalidArgumentException('ERROR: cannot find step for identifier "' . $stepIdentifier . '"', 1402075819);
}
}