/** * Create a flow bootstrap instance */ protected function initializeFlow() { require_once __DIR__ . '/../../../../../../../Framework/TYPO3.Flow/Classes/TYPO3/Flow/Core/Bootstrap.php'; if (!defined('FLOW_PATH_ROOT')) { define('FLOW_PATH_ROOT', realpath(__DIR__ . '/../../../../../../../..') . '/'); } // The new classloader needs warnings converted to exceptions if (!defined('BEHAT_ERROR_REPORTING')) { define('BEHAT_ERROR_REPORTING', E_ALL); // Load ErrorException class, since it will be used in the Behat error handler class_exists('Behat\\Behat\\Exception\\ErrorException'); class_exists('Behat\\Testwork\\Call\\Exception\\CallErrorException'); } $bootstrap = new Bootstrap('Testing/Behat'); Scripts::initializeClassLoader($bootstrap); Scripts::initializeSignalSlot($bootstrap); Scripts::initializePackageManagement($bootstrap); $bootstrap->buildRuntimeSequence()->invoke($bootstrap); return $bootstrap; }
/** * Bootstraps the minimal infrastructure, resolves a fitting request handler and * then passes control over to that request handler. * * @return void * @api */ public function run() { Scripts::initializeClassLoader($this); Scripts::initializeSignalSlot($this); Scripts::initializePackageManagement($this); $this->activeRequestHandler = $this->resolveRequestHandler(); $this->activeRequestHandler->handleRequest(); }