Collective\Annotations\AnnotationScanner::addAnnotationNamespace PHP Method

addAnnotationNamespace() public method

If the second parameter is null, it will assume the namespace is PSR-4'd inside your app folder.
public addAnnotationNamespace ( string $namespace, string $path = null )
$namespace string
$path string
    public function addAnnotationNamespace($namespace, $path = null)
    {
        $this->namespaces[] = $namespace;
        return $this->registerAnnotationsPathWithRegistry($path ?: $this->getPathFromNamespace($namespace));
    }