public function getNamespaces()
    {
        $namespaces = [];

        foreach ($this->paths as $namespace => $paths) {
            if (count($paths)) {
                $namespaces[] = $namespace;
            }
        }

        return $namespaces;
    }
public function getNamespaces()
    {
        $namespaces = [];

        foreach ($this->paths as $namespace => $paths) {
            if (count($paths)) {
                $namespaces[] = $namespace;
            }
        }

        return $namespaces;
    }
public function getNamespaces ( ) { $ namespaces = [ ] ; foreach ( $ this -> paths as $ namespace => $ paths ) { if ( count ( $ paths ) ) { $ namespaces [ ] = $ namespace ; } } return $ namespaces ; }
Return a list of registered namespaces.

Only returns those that have paths registered to them.

@return string[]
Return a list of registered namespaces .