/** * Initializes the matching boot sequence depending on the type of the command * (RUNLEVEL_RUNTIME or RUNLEVEL_COMPILETIME) and manually injects the necessary dependencies of * this request handler. * * @param string $runlevel one of the Bootstrap::RUNLEVEL_* constants * @return void */ protected function boot($runlevel) { $sequence = $runlevel === Bootstrap::RUNLEVEL_COMPILETIME ? $this->bootstrap->buildCompiletimeSequence() : $this->bootstrap->buildRuntimeSequence(); $sequence->invoke($this->bootstrap); $this->objectManager = $this->bootstrap->getObjectManager(); $this->dispatcher = $this->objectManager->get(Dispatcher::class); }