protected static function getApp(Event $event) { if (static::$app === null) { $vendorDir = $event->getComposer()->getConfig()->get('vendor-dir'); static::$app = (require $vendorDir . '/bolt/bolt/app/bootstrap.php'); } return static::$app; }