public function isNamespaceConfiguredToAutoload(string $namespace): bool
    {
        $namespace = trim($namespace, '\\').'\\';
        $classLoader = $this->getClassLoader();

        foreach ($classLoader->getPrefixesPsr4() as $prefix => $paths) {
            if (0 === strpos($namespace, $prefix)) {
                return true;
            }
        }

        foreach ($classLoader->getPrefixes() as $prefix => $paths) {
            if (0 === strpos($namespace, $prefix)) {
                return true;
            }
        }

        return false;
    }
public function isNamespaceConfiguredToAutoload(string $namespace): bool
    {
        $namespace = trim($namespace, '\\').'\\';
        $classLoader = $this->getClassLoader();

        foreach ($classLoader->getPrefixesPsr4() as $prefix => $paths) {
            if (0 === strpos($namespace, $prefix)) {
                return true;
            }
        }

        foreach ($classLoader->getPrefixes() as $prefix => $paths) {
            if (0 === strpos($namespace, $prefix)) {
                return true;
            }
        }

        return false;
    }
public function isNamespaceConfiguredToAutoload ( string $ namespace ) : bool { $ namespace = trim ( $ namespace , '\\' ) . '\\' ; $ classLoader = $ this -> getClassLoader ( ) ; foreach ( $ classLoader -> getPrefixesPsr4 ( ) as $ prefix => $ paths ) { if ( 0 === strpos ( $ namespace , $ prefix ) ) { return true ; } } foreach ( $ classLoader -> getPrefixes ( ) as $ prefix => $ paths ) { if ( 0 === strpos ( $ namespace , $ prefix ) ) { return true ; } } return false ; }
Returns if the namespace is configured by composer autoloader.
Returns if the namespace is configured by composer autoloader .