Example #1
0
 /**
  * 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')));
     }
 }
Example #2
0
 /**
  * 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));
 }
Example #3
0
 /**
  * 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));
 }
Example #4
0
 /**
  * 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));
 }
Example #5
0
 /**
  * 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));
 }