protected _extractCallable ( array $function, CakeEventListener $object ) : callback | ||
$function | array | the array taken from a handler definition for an event |
$object | CakeEventListener | The handler object |
리턴 | callback |
protected function _extractCallable($function, $object)
{
$method = $function['callable'];
$options = $function;
unset($options['callable']);
if (is_string($method)) {
$method = array($object, $method);
}
return array($method, $options);
}