/** * Listen for possible Kernel boot failures. * * @param KernelBootEvent $event * The event that contains the boot failure. */ public function onKernelBootLevelFailure(KernelBootLevelEvent $event) { $this->output->writeln(sprintf("<error>Unable to reach level '%d' due to: %s</error>", $event->getLevel(), $event->getException()->getMessage())); }
/** * Boot Sugar login. * * @param KernelBootLevelEvent $event * The event that triggered this boot level process. * * @throws \RuntimeException * If there's no user with administrator privileges on this SugarCRM * instance. */ protected function bootSugarLogin(KernelBootLevelEvent $event) { // FIXME: add support for user being supplied by --user|-u global option $event->getKernel()->get('sugar')->localLogin(); }