|
@@ -495,7 +495,7 @@ class AuthComponent extends Component {
|
|
|
throw new CakeException(__d('cake_dev', 'Authorization adapter "%s" was not found.', $class));
|
|
throw new CakeException(__d('cake_dev', 'Authorization adapter "%s" was not found.', $class));
|
|
|
}
|
|
}
|
|
|
if (!method_exists($className, 'authorize')) {
|
|
if (!method_exists($className, 'authorize')) {
|
|
|
- throw new CakeException(__d('cake_dev', 'Authorization objects must implement an authorize method.'));
|
|
|
|
|
|
|
+ throw new CakeException(__d('cake_dev', 'Authorization objects must implement an %s method.', 'authorize'));
|
|
|
}
|
|
}
|
|
|
$settings = array_merge($global, (array)$settings);
|
|
$settings = array_merge($global, (array)$settings);
|
|
|
$this->_authorizeObjects[] = new $className($this->_Collection, $settings);
|
|
$this->_authorizeObjects[] = new $className($this->_Collection, $settings);
|
|
@@ -784,7 +784,7 @@ class AuthComponent extends Component {
|
|
|
throw new CakeException(__d('cake_dev', 'Authentication adapter "%s" was not found.', $class));
|
|
throw new CakeException(__d('cake_dev', 'Authentication adapter "%s" was not found.', $class));
|
|
|
}
|
|
}
|
|
|
if (!method_exists($className, 'authenticate')) {
|
|
if (!method_exists($className, 'authenticate')) {
|
|
|
- throw new CakeException(__d('cake_dev', 'Authentication objects must implement an authenticate method.'));
|
|
|
|
|
|
|
+ throw new CakeException(__d('cake_dev', 'Authentication objects must implement an %s method.', 'authenticate'));
|
|
|
}
|
|
}
|
|
|
$settings = array_merge($global, (array)$settings);
|
|
$settings = array_merge($global, (array)$settings);
|
|
|
$this->_authenticateObjects[] = new $className($this->_Collection, $settings);
|
|
$this->_authenticateObjects[] = new $className($this->_Collection, $settings);
|