Inheritance: extends Exception
示例#1
0
 public function getProxyDirectory()
 {
     if (!isset($this->options['proxy_dir'])) {
         throw ConfigurationException::missingKey('proxy_dir');
     }
     return $this->options['proxy_dir'];
 }
 public function getPersisterStrategy()
 {
     if (isset($this->_attributes['persister_strategy'])) {
         $strategy = $this->_attributes['persister_strategy'];
         if (!in_array($strategy, $this->supportedPersisterStrategies)) {
             throw ConfigurationException::invalidPersisterStrategy($strategy, $this->supportedPersisterStrategies);
         }
     } else {
         $strategy = 'sql_batch';
     }
     return $strategy;
 }