public function match(array $url, array $context = [])
    {
        if (isset($url['controller'], $url['plugin']) && $url['plugin'] !== $url['controller']) {
            return false;
        }
        $this->defaults['controller'] = $url['controller'];
        $result = parent::match($url, $context);
        unset($this->defaults['controller']);

        return $result;
    }
public function match(array $url, array $context = [])
    {
        if (isset($url['controller'], $url['plugin']) && $url['plugin'] !== $url['controller']) {
            return false;
        }
        $this->defaults['controller'] = $url['controller'];
        $result = parent::match($url, $context);
        unset($this->defaults['controller']);

        return $result;
    }
public function match ( array $ url , array $ context = [ ] ) { if ( isset ( $ url [ 'controller' ] , $ url [ 'plugin' ] ) && $ url [ 'plugin' ] !== $ url [ 'controller' ] ) { return false ; } $ this -> defaults [ 'controller' ] = $ url [ 'controller' ] ; $ result = parent :: match ( $ url , $ context ) ; unset ( $ this -> defaults [ 'controller' ] ) ; return $ result ; }
Reverses route plugin shortcut URLs. If the plugin and controller
are not the same the match is an auto fail.

@param array $url Array of parameters to convert to a string.
@param array $context An array of the current request context.
Contains information such as the current host, scheme, port, and base
directory.
@return string|false Either a string URL for the parameters if they match or false.
Reverses route plugin shortcut URLs . If the plugin and controller are not the same the match is an auto fail .