public function execute($arr, $arg)
    {
        if (is_callable($arr)) {
            return call_user_func_array($arr, $arg);
        }

        if (is_array($arr)) {
            return call_user_func_array($arr, $arg);
        }

        // We launch the controller loader if $cb is a String
        $controller = $this->controller($arr);

        if ($controller['action'][1] == null) {
            array_splice($controller['action'], 1, 1);
        }

        if (is_array($controller)) {
            return call_user_func_array(
                $controller['action'],
                array_merge($controller['injection'], $arg)
            );
        }

        return false;
    }
public function execute($arr, $arg)
    {
        if (is_callable($arr)) {
            return call_user_func_array($arr, $arg);
        }

        if (is_array($arr)) {
            return call_user_func_array($arr, $arg);
        }

        // We launch the controller loader if $cb is a String
        $controller = $this->controller($arr);

        if ($controller['action'][1] == null) {
            array_splice($controller['action'], 1, 1);
        }

        if (is_array($controller)) {
            return call_user_func_array(
                $controller['action'],
                array_merge($controller['injection'], $arg)
            );
        }

        return false;
    }
public function execute ( $ arr , $ arg ) { if ( is_callable ( $ arr ) ) { return call_user_func_array ( $ arr , $ arg ) ; } if ( is_array ( $ arr ) ) { return call_user_func_array ( $ arr , $ arg ) ; } // We launch the controller loader if $cb is a String $ controller = $ this -> controller ( $ arr ) ; if ( $ controller [ 'action' ] [ 1 ] == null ) { array_splice ( $ controller [ 'action' ] , 1 , 1 ) ; } if ( is_array ( $ controller ) ) { return call_user_func_array ( $ controller [ 'action' ] , array_merge ( $ controller [ 'injection' ] , $ arg ) ) ; } return false ; }
Successively launches a function list.

@param array|callable $arr
@param array|callable $arg
@return mixed
Successively launches a function list .