/** * Get the namespaces path for the theme. * * @param string $namespace * @return string */ public function getNamespacesPath($namespace = null) { $path = $this->path . '/' . $this->themeBag->getNamespacesPath(); if (!is_null($namespace)) { $path .= '/' . $namespace; } return $path; }