Esempio n. 1
0
 /**
  * @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);
     }
 }