예제 #1
0
 public function verifyConfig()
 {
     if ($this->config('implementedMethods') && !$this->config('implementedServices')) {
         throw new Exception('No reviews types defined.');
     }
     parent::verifyConfig();
 }
예제 #2
0
 /**
  * Verify config.
  *
  * @return void
  */
 public function verifyConfig()
 {
     if (!($strategy = $this->config('strategy'))) {
         throw new Exception('Missing required obfuscation strategy.');
     }
     if (!$strategy instanceof StrategyInterface) {
         throw new Exception('Strategy must implement the `Muffin\\Obfuscate\\Model\\Behavior\\Strategy\\StrategyInterface`');
     }
     parent::verifyConfig();
 }
예제 #3
0
 public function verifyConfig()
 {
     $config = $this->config();
     $table = $this->_table();
     if (!in_array($config['typeField'], $table->schema()->columns())) {
         throw new \Exception();
     }
     if (!$config['table']) {
         $this->config('table', $table->table());
     }
     foreach ($config['typeMap'] as $key => $entityClass) {
         $this->addType($key, $entityClass);
     }
     parent::verifyConfig();
 }
예제 #4
0
 /**
  * Test method to ensure it is ignored as a callable method.
  */
 public function verifyConfig()
 {
     return parent::verifyConfig();
 }