コード例 #1
0
ファイル: CmfPlugin.php プロジェクト: nitronet/fwk-cmf
 /**
  * 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')));
     }
 }
コード例 #2
0
ファイル: ResultTypePlugin.php プロジェクト: fwk/core
 /**
  * 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));
 }
コード例 #3
0
ファイル: RequestMatcherPlugin.php プロジェクト: fwk/core
 /**
  * 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));
 }
コード例 #4
0
ファイル: UrlRewriterPlugin.php プロジェクト: fwk/core
 /**
  * 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));
 }
コード例 #5
0
ファイル: ViewHelperPlugin.php プロジェクト: fwk/core
 /**
  * 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));
 }