/**
  * initialize plugin
  *
  */
 public function initialize()
 {
     if ($this->configuration instanceof sfApplicationConfiguration) {
         $file = 'config/op_point.yml';
         $this->configuration->getConfigCache()->registerConfigHandler($file, 'sfSimpleYamlConfigHandler');
         self::$pointConfig = (include $this->configuration->getConfigCache()->checkConfig($file));
         foreach (self::$pointConfig as $key => $value) {
             if (isset($value['event'])) {
                 $listener = isset($value['listener']) ? $value['listener'] : array($this, 'listenTo' . sfInflector::camelize($key));
                 if (is_array($value['event'])) {
                     foreach ($value['event'] as $eventName) {
                         $this->dispatcher->connect($eventName, $listener);
                     }
                 } else {
                     $this->dispatcher->connect($value['event'], $listener);
                 }
             } else {
                 throw new LogicException('op_point.yml is wrong');
             }
         }
     }
 }