Controller/Rest.php
private function getDeploymentConfig()
    {
        if (!$this->deploymentConfig instanceof \Magento\Framework\App\DeploymentConfig) {
            $this->deploymentConfig = \Magento\Framework\App\ObjectManager::getInstance()
                ->get('Magento\Framework\App\DeploymentConfig');
        }
        return $this->deploymentConfig;
    }
private function getDeploymentConfig()
    {
        if (!$this->deploymentConfig instanceof \Magento\Framework\App\DeploymentConfig) {
            $this->deploymentConfig = \Magento\Framework\App\ObjectManager::getInstance()
                ->get('Magento\Framework\App\DeploymentConfig');
        }
        return $this->deploymentConfig;
    }
private function getDeploymentConfig ( ) { if ( ! $ this -> deploymentConfig instanceof \ Magento \ Framework \ App \ DeploymentConfig ) { $ this -> deploymentConfig = \ Magento \ Framework \ App \ ObjectManager :: getInstance ( ) -> get ( 'Magento\Framework\App\DeploymentConfig' ) ; } return $ this -> deploymentConfig ; }
Get deployment config

@return DeploymentConfig
Get deployment config