src/Graviton/SecurityBundle/User/Model/ModelFactory.php
public function create()
    {
        $serviceId = $this->container->getParameter('graviton.security.authentication.provider.model');
        $service = $this->container->get('graviton.security.authentication.provider.model.noop');

        if (!empty($serviceId) && $this->container->has($serviceId)) {
            $service = $this->container->get($serviceId);
        }

        return $service;
    }
public function create()
    {
        $serviceId = $this->container->getParameter('graviton.security.authentication.provider.model');
        $service = $this->container->get('graviton.security.authentication.provider.model.noop');

        if (!empty($serviceId) && $this->container->has($serviceId)) {
            $service = $this->container->get($serviceId);
        }

        return $service;
    }
public function create ( ) { $ serviceId = $ this -> container -> getParameter ( 'graviton.security.authentication.provider.model' ) ; $ service = $ this -> container -> get ( 'graviton.security.authentication.provider.model.noop' ) ; if ( ! empty ( $ serviceId ) && $ this -> container -> has ( $ serviceId ) ) { $ service = $ this -> container -> get ( $ serviceId ) ; } return $ service ; }
Determines what service to be used.

@return \Graviton\RestBundle\Model\ModelInterface
Determines what service to be used .