當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Sequence::addStep方法代碼示例

本文整理匯總了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);
     }
 }
開發者ID:abeyl,項目名稱:typo3_console,代碼行數:72,代碼來源:RunLevel.php


注:本文中的Sequence::addStep方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。