src/Factory/AdminFactory.php
public function supports(Request $request)
    {
        $routeParameters = $request->get('_route_params');

        if (!is_array($routeParameters)) {
            return false;
        }

        if (!key_exists(LAGAdminBundle::REQUEST_PARAMETER_ADMIN, $routeParameters) ||
            !key_exists(LAGAdminBundle::REQUEST_PARAMETER_ACTION, $routeParameters)
        ) {
            return false;
        }

        if (!$this->resourceCollection->has($routeParameters[LAGAdminBundle::REQUEST_PARAMETER_ADMIN])) {
            return false;
        }

        return true;
    }
public function supports(Request $request)
    {
        $routeParameters = $request->get('_route_params');

        if (!is_array($routeParameters)) {
            return false;
        }

        if (!key_exists(LAGAdminBundle::REQUEST_PARAMETER_ADMIN, $routeParameters) ||
            !key_exists(LAGAdminBundle::REQUEST_PARAMETER_ACTION, $routeParameters)
        ) {
            return false;
        }

        if (!$this->resourceCollection->has($routeParameters[LAGAdminBundle::REQUEST_PARAMETER_ADMIN])) {
            return false;
        }

        return true;
    }
public function supports ( Request $ request ) { $ routeParameters = $ request -> get ( '_route_params' ) ; if ( ! is_array ( $ routeParameters ) ) { return false ; } if ( ! key_exists ( LAGAdminBundle :: REQUEST_PARAMETER_ADMIN , $ routeParameters ) || ! key_exists ( LAGAdminBundle :: REQUEST_PARAMETER_ACTION , $ routeParameters ) ) { return false ; } if ( ! $ this -> resourceCollection -> has ( $ routeParameters [ LAGAdminBundle :: REQUEST_PARAMETER_ADMIN ] ) ) { return false ; } return true ; }
Return true if the current Request is supported. Supported means that the Request has the required valid
parameters to get an admin from the registry.

@param Request $request

@return bool
Return true if the current Request is supported . Supported means that the Request has the required valid parameters to get an admin from the registry .