コード例 #1
0
 /**
  *
  * @return PluginExecutionManager
  */
 public static function instance()
 {
     if (!self::$instance instanceof PluginExecutionManager) {
         self::$instance = new self();
     }
     return self::$instance;
 }
コード例 #2
0
 public function execute(sfFilterChain $filterChain)
 {
     $module = $this->getContext()->getModuleName();
     $action = $this->getContext()->getActionName();
     $actionsStack = PluginExecutionManager::instance()->getPreExecuteMethodStack($module, $action);
     $this->performServiceOpteration($actionsStack, self::PRE_EXEC);
     $filterChain->execute();
     $actionsStack = PluginExecutionManager::instance()->getPostExecuteMethodStack($module, $action);
     $this->performServiceOpteration($actionsStack, self::POST_EXEC);
 }