/** * Filterの処理を実行します。 * */ public function execute() { $clsname = get_class($this); // 現在のアクション名を取得 $actionName = $this->actionChain->getCurActionName(); // 実行対象かどうかのチェック $isTarget = $this->isTarget($actionName); if (!$isTarget) { $this->log->info("{$clsname} は実行対象外のためスキップします。"); } // prefilterを実行 if ($isTarget) { $this->log->debug("{$clsname}のprefilterを実行します。"); $this->prefilter(); $this->log->debug("{$clsname}のprefilterを実行しました。"); } // filterChain $this->filterChain->execute(); // postfilterを実行 if ($isTarget) { $this->log->debug("{$clsname}のpostfilterを実行します。"); $this->postfilter(); $this->log->debug("{$clsname}のpostfilterを実行しました。"); } return; }
/** * 設定ファイルを読み込む * * @access public * @since 3.0.0 */ function execute() { $this->readConfigFiles($this->actionChain->getCurActionName()); }