public function verifyConfig() { if ($this->config('implementedMethods') && !$this->config('implementedServices')) { throw new Exception('No reviews types defined.'); } parent::verifyConfig(); }
/** * 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(); }
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(); }
/** * Test method to ensure it is ignored as a callable method. */ public function verifyConfig() { return parent::verifyConfig(); }