private function getInstallerService(): Installer
    {
        switch ($this->getInstallType()) {
            case InstallType::ENTERPRISE_DEMO:
                return $this->serviceContainer->get($this->installerServices['platform-ee-demo']);
            case InstallType::ENTERPRISE:
                return $this->serviceContainer->get($this->installerServices['platform-ee']);
            case InstallType::PLATFORM_DEMO:
                return $this->serviceContainer->get($this->installerServices['platform-demo']);
            case InstallType::PLATFORM:
                return $this->serviceContainer->get($this->installerServices['platform']);
            default:
                throw new ServiceNotFoundException('Installer service not found');
        }
    }
private function getInstallerService(): Installer
    {
        switch ($this->getInstallType()) {
            case InstallType::ENTERPRISE_DEMO:
                return $this->serviceContainer->get($this->installerServices['platform-ee-demo']);
            case InstallType::ENTERPRISE:
                return $this->serviceContainer->get($this->installerServices['platform-ee']);
            case InstallType::PLATFORM_DEMO:
                return $this->serviceContainer->get($this->installerServices['platform-demo']);
            case InstallType::PLATFORM:
                return $this->serviceContainer->get($this->installerServices['platform']);
            default:
                throw new ServiceNotFoundException('Installer service not found');
        }
    }
private function getInstallerService ( ) : Installer { switch ( $ this -> getInstallType ( ) ) { case InstallType :: ENTERPRISE_DEMO : return $ this -> serviceContainer -> get ( $ this -> installerServices [ 'platform-ee-demo' ] ) ; case InstallType :: ENTERPRISE : return $ this -> serviceContainer -> get ( $ this -> installerServices [ 'platform-ee' ] ) ; case InstallType :: PLATFORM_DEMO : return $ this -> serviceContainer -> get ( $ this -> installerServices [ 'platform-demo' ] ) ; case InstallType :: PLATFORM : return $ this -> serviceContainer -> get ( $ this -> installerServices [ 'platform' ] ) ; default : throw new ServiceNotFoundException ( 'Installer service not found' ) ; } }
Returns installer service depending on current install type.

@throws \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
@throws \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException  When no suitable service is found

@return Installer Installer service
Returns installer service depending on current install type .