本文整理汇总了PHP中Cake\ORM\Behavior::verifyConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP Behavior::verifyConfig方法的具体用法?PHP Behavior::verifyConfig怎么用?PHP Behavior::verifyConfig使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cake\ORM\Behavior
的用法示例。
在下文中一共展示了Behavior::verifyConfig方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: verifyConfig
public function verifyConfig()
{
if ($this->config('implementedMethods') && !$this->config('implementedServices')) {
throw new Exception('No reviews types defined.');
}
parent::verifyConfig();
}
示例2: 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();
}
示例3: 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();
}
示例4: verifyConfig
/**
* Test method to ensure it is ignored as a callable method.
*/
public function verifyConfig()
{
return parent::verifyConfig();
}