Xpressengine\Database\ProxyManager::getProxy PHP Method

getProxy() public method

get registered proxy
public getProxy ( string $name ) : Xpressengine\Database\ProxyInterface
$name string proxy name
return Xpressengine\Database\ProxyInterface
    public function getProxy($name)
    {
        $proxy = $this->container->get(self::REGISTER_KEY, $name);
        if ($proxy == null) {
            throw new Exceptions\NotExistsProxyException();
        }
        return $proxy;
    }