本文整理匯總了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();
}