private function extractPermissionFrom(Route $route)
    {
        $parameters = $route->getAction();

        if (isset($parameters['permission']))
        {
            return $parameters['permission'];
        }

        return null;
    }
private function extractPermissionFrom(Route $route)
    {
        $parameters = $route->getAction();

        if (isset($parameters['permission']))
        {
            return $parameters['permission'];
        }

        return null;
    }
private function extractPermissionFrom ( Route $ route ) { $ parameters = $ route -> getAction ( ) ; if ( isset ( $ parameters [ 'permission' ] ) ) { return $ parameters [ 'permission' ] ; } return null ; }
Extracts the permission configured inside the route action array.

@param Route $route
@return string|null
Extracts the permission configured inside the route action array .