protected function _extractCallable($function, $object)
    {
        $method = $function['callable'];
        $options = $function;
        unset($options['callable']);
        if (is_string($method)) {
            $method = [$object, $method];
        }

        return [$method, $options];
    }
protected function _extractCallable($function, $object)
    {
        $method = $function['callable'];
        $options = $function;
        unset($options['callable']);
        if (is_string($method)) {
            $method = [$object, $method];
        }

        return [$method, $options];
    }
protected function _extractCallable ( $ function , $ object ) { $ method = $ function [ 'callable' ] ; $ options = $ function ; unset ( $ options [ 'callable' ] ) ; if ( is_string ( $ method ) ) { $ method = [ $ object , $ method ] ; } return [ $ method , $ options ] ; }
Auxiliary function to extract and return a PHP callback type out of the callable definition
from the return value of the `implementedEvents` method on a Cake\Event\EventListenerInterface

@param array $function the array taken from a handler definition for an event
@param \Cake\Event\EventListenerInterface $object The handler object
@return callable
Auxiliary function to extract and return a PHP callback type out of the callable definition from the return value of the implementedEvents method on a Cake \ Event \ EventListenerInterface