concrete/src/Package/Package.php
public function shouldEnableLegacyNamespace()
    {
        if (isset($this->pkgAutoloaderMapCoreExtensions) && $this->pkgAutoloaderMapCoreExtensions) {
            // We're no longer using this to denote non-legacy applications, but if a package uses this
            // that means it's NOT using the legacy namespace.
            return false;
        }

        $concrete5 = '7.9.9';
        $package = $this->getApplicationVersionRequired();
        if (version_compare($package, $concrete5, '>')) {
            return false;
        }

        return $this->pkgEnableLegacyNamespace;
    }
public function shouldEnableLegacyNamespace()
    {
        if (isset($this->pkgAutoloaderMapCoreExtensions) && $this->pkgAutoloaderMapCoreExtensions) {
            // We're no longer using this to denote non-legacy applications, but if a package uses this
            // that means it's NOT using the legacy namespace.
            return false;
        }

        $concrete5 = '7.9.9';
        $package = $this->getApplicationVersionRequired();
        if (version_compare($package, $concrete5, '>')) {
            return false;
        }

        return $this->pkgEnableLegacyNamespace;
    }
public function shouldEnableLegacyNamespace ( ) { if ( isset ( $ this -> pkgAutoloaderMapCoreExtensions ) && $ this -> pkgAutoloaderMapCoreExtensions ) { // We're no longer using this to denote non-legacy applications, but if a package uses this // that means it's NOT using the legacy namespace. return false ; } $ concrete5 = '7.9.9' ; $ package = $ this -> getApplicationVersionRequired ( ) ; if ( version_compare ( $ package , $ concrete5 , '>' ) ) { return false ; } return $ this -> pkgEnableLegacyNamespace ; }
Should this package enable legacy namespaces?

This returns true IF:
1. $this->pkgAutoloaderMapCoreExtensions is false or unset
2. The required package version > 7.9.9 meaning version 8 or newer
3. $this->pkgEnableLegacyNamespace is true

@return bool
Should this package enable legacy namespaces?