src/Grant/GrantFactory.php
public function getGrant($name)
    {
        if (empty($this->registry[$name])) {
            $this->registerDefaultGrant($name);
        }

        return $this->registry[$name];
    }
public function getGrant($name)
    {
        if (empty($this->registry[$name])) {
            $this->registerDefaultGrant($name);
        }

        return $this->registry[$name];
    }
public function getGrant ( $ name ) { if ( empty ( $ this -> registry [ $ name ] ) ) { $ this -> registerDefaultGrant ( $ name ) ; } return $ this -> registry [ $ name ] ; }
Returns a grant singleton by name.

If the grant has not be registered, a default grant will be loaded.

@param  string $name
@return AbstractGrant
Returns a grant singleton by name .