/** * Adds Actions and Listeners to the Application * * @param Application $app The running Application * * @return void */ public function load(Application $app) { $app->register('PageView', ProxyFactory::factory('Nitronet\\Fwk\\CMF\\Controllers\\PageView:show')); $console = $this->cfg('consoleService', false); if ($console) { $app->addListener(new CommandsListener($this->cfg('consoleService', 'console'), $this->cfg('serviceName', 'cmf'))); } }
/** * Returns a list of Actions for this plugin * * @param Application $app The running Application * * @return void */ public function load(Application $app) { $app->addListener(new ResultTypeListener(self::SERVICE_NAME)); }
/** * Returns a list of Actions for this plugin * * @param Application $app The running Application * * @return void */ public function load(Application $app) { $app->addListener(new RequestMatcherListener(self::SERVICE_NAME)); }
/** * Returns a list of Actions for this plugin * * @param Application $app The running Application * * @return void */ public function load(Application $app) { $app->addListener(new UrlRewriterListener(self::SERVICE_NAME)); }
/** * Returns a list of Actions for this plugin * * @param Application $app The running Application * * @return void */ public function load(Application $app) { $app->addListener(new ViewHelperListener(self::SERVICE_NAME)); }