protected function getResourceOwnerByName($name)
    {
        foreach ($this->container->getParameter('hwi_oauth.firewall_names') as $firewall) {
            $id = 'hwi_oauth.resource_ownermap.'.$firewall;
            if (!$this->container->has($id)) {
                continue;
            }

            $ownerMap = $this->container->get($id);
            if ($resourceOwner = $ownerMap->getResourceOwnerByName($name)) {
                return $resourceOwner;
            }
        }

        throw new NotFoundHttpException(sprintf("No resource owner with name '%s'.", $name));
    }
protected function getResourceOwnerByName($name)
    {
        foreach ($this->container->getParameter('hwi_oauth.firewall_names') as $firewall) {
            $id = 'hwi_oauth.resource_ownermap.'.$firewall;
            if (!$this->container->has($id)) {
                continue;
            }

            $ownerMap = $this->container->get($id);
            if ($resourceOwner = $ownerMap->getResourceOwnerByName($name)) {
                return $resourceOwner;
            }
        }

        throw new NotFoundHttpException(sprintf("No resource owner with name '%s'.", $name));
    }
protected function getResourceOwnerByName ( $ name ) { foreach ( $ this -> container -> getParameter ( 'hwi_oauth.firewall_names' ) as $ firewall ) { $ id = 'hwi_oauth.resource_ownermap.' . $ firewall ; if ( ! $ this -> container -> has ( $ id ) ) { continue ; } $ ownerMap = $ this -> container -> get ( $ id ) ; if ( $ resourceOwner = $ ownerMap -> getResourceOwnerByName ( $ name ) ) { return $ resourceOwner ; } } throw new NotFoundHttpException ( sprintf ( "No resource owner with name '%s'." , $ name ) ) ; }
Get a resource owner by name.

@param string $name

@return ResourceOwnerInterface

@throws NotFoundHttpException if there is no resource owner with the given name
Get a resource owner by name .