protected static function getParams(PsrRequest $request)
    {
        $params = (array)$request->getAttribute('params', []);
        $params += [
            'plugin' => null,
            'controller' => null,
            'action' => null,
            '_ext' => null,
            'pass' => []
        ];

        return $params;
    }
protected static function getParams(PsrRequest $request)
    {
        $params = (array)$request->getAttribute('params', []);
        $params += [
            'plugin' => null,
            'controller' => null,
            'action' => null,
            '_ext' => null,
            'pass' => []
        ];

        return $params;
    }
protected static function getParams ( PsrRequest $ request ) { $ params = ( array ) $ request -> getAttribute ( 'params' , [ ] ) ; $ params += [ 'plugin' => null , 'controller' => null , 'action' => null , '_ext' => null , 'pass' => [ ] ] ; return $ params ; }
Extract the routing parameters out of the request object.

@param \Psr\Http\Message\ServerRequestInterface $request The request to extract params from.
@return array The routing parameters.
Extract the routing parameters out of the request object .