public function addAnnotationNamespace($namespace, $path = null) { $this->namespaces[] = $namespace; return $this->registerAnnotationsPathWithRegistry($path ?: $this->getPathFromNamespace($namespace)); }