Cake\Routing\Route\Route::_parseArgs PHP Метод

_parseArgs() защищенный Метод

Return true if a given named $param's $val matches a given $rule depending on $context. Currently implemented rule types are controller, action and match that can be combined with each other.
protected _parseArgs ( string $args, string $context ) : array
$args string A string with the passed params. eg. /1/foo
$context string The current route context, which should contain controller/action keys.
Результат array Array of passed args.
    protected function _parseArgs($args, $context)
    {
        $pass = [];
        $args = explode('/', $args);
        foreach ($args as $param) {
            if (empty($param) && $param !== '0' && $param !== 0) {
                continue;
            }
            $pass[] = rawurldecode($param);
        }
        return $pass;
    }