public function getForResource($resource)
    {
        $resourceName = $this->resourceName($resource);

        if (isset($this->resourceFactories[$resourceName])) {
            return $this->resourceFactories[$resourceName];
        }

        throw new HandlerNotFoundException("No handler found for resource '$resourceName'");

    }
public function getForResource($resource)
    {
        $resourceName = $this->resourceName($resource);

        if (isset($this->resourceFactories[$resourceName])) {
            return $this->resourceFactories[$resourceName];
        }

        throw new HandlerNotFoundException("No handler found for resource '$resourceName'");

    }
public function getForResource ( $ resource ) { $ resourceName = $ this -> resourceName ( $ resource ) ; if ( isset ( $ this -> resourceFactories [ $ resourceName ] ) ) { return $ this -> resourceFactories [ $ resourceName ] ; } throw new HandlerNotFoundException ( "No handler found for resource '$resourceName'" ) ; }
Get the validator factory setted for a resource

@param string|AppliesToResource $resource

@return callable
Get the validator factory setted for a resource