private function findEditionByEditionFiles()
    {
        $facts = $this->getFacts();
        $edition = '';
        if (is_dir($facts->getEnterpriseEditionRootPath()) === true) {
            $edition = static::ENTERPRISE;
        } elseif (is_dir($facts->getProfessionalEditionRootPath()) === true) {
            $edition = static::PROFESSIONAL;
        } elseif (is_dir($facts->getCommunityEditionSourcePath()) === true) {
            $edition = static::COMMUNITY;
        }

        if ($edition === '') {
            throw new \Exception("Shop directory structure is not setup properly. Edition could not be detected");
        }

        return $edition;
    }
private function findEditionByEditionFiles()
    {
        $facts = $this->getFacts();
        $edition = '';
        if (is_dir($facts->getEnterpriseEditionRootPath()) === true) {
            $edition = static::ENTERPRISE;
        } elseif (is_dir($facts->getProfessionalEditionRootPath()) === true) {
            $edition = static::PROFESSIONAL;
        } elseif (is_dir($facts->getCommunityEditionSourcePath()) === true) {
            $edition = static::COMMUNITY;
        }

        if ($edition === '') {
            throw new \Exception("Shop directory structure is not setup properly. Edition could not be detected");
        }

        return $edition;
    }
private function findEditionByEditionFiles ( ) { $ facts = $ this -> getFacts ( ) ; $ edition = '' ; if ( is_dir ( $ facts -> getEnterpriseEditionRootPath ( ) ) === true ) { $ edition = static :: ENTERPRISE ; } elseif ( is_dir ( $ facts -> getProfessionalEditionRootPath ( ) ) === true ) { $ edition = static :: PROFESSIONAL ; } elseif ( is_dir ( $ facts -> getCommunityEditionSourcePath ( ) ) === true ) { $ edition = static :: COMMUNITY ; } if ( $ edition === '' ) { throw new \ Exception ( "Shop directory structure is not setup properly. Edition could not be detected" ) ; } return $ edition ; }
Find edition by directories of the editions in the vendor directory

@return string

@throws \Exception
Find edition by directories of the editions in the vendor directory