Collective\Annotations\AnnotationsServiceProvider::convertNamespaceToPath PHP Метод

convertNamespaceToPath() публичный Метод

Convert the given namespace to a file path.
public convertNamespaceToPath ( string $namespace ) : string
$namespace string the namespace to convert
Результат string
    public function convertNamespaceToPath($namespace)
    {
        // remove the app namespace from the namespace if it is there
        $appNamespace = $this->getAppNamespace();
        if (substr($namespace, 0, strlen($appNamespace)) == $appNamespace) {
            $namespace = substr($namespace, strlen($appNamespace));
        }
        // trim and return the path
        return str_replace('\\', '/', trim($namespace, ' \\'));
    }