/** * Configures the application. * * The `configure` event of class {@link Core\ConfigureEvent} is fired after the application * is configured. Event hooks may use this event to further configure the application. */ protected function configure() { $this->change_status(self::STATUS_CONFIGURING, function () { Debug::configure($this->configs['debug']); Prototype::configure($this->configs['prototype']); $this->events; new Core\ConfigureEvent($this); }); }
/** * Boot enabled modules. * * Before the modules are actually booted up, their index is used to alter the I18n load * paths and the config paths. * * @param Core\BootEvent $event * @param Core|CoreBindings $app */ public static function on_core_boot(Core\BootEvent $event, Core $app) { # # Revoke prototypes and events. # Prototype::configure($app->configs['prototype']); $app->events->attach_many($app->configs['event']); }