/**
* Returns a snippet model instance
*
* @param string|null $namespace
*
* @return Enlight_Components_Snippet_Namespace
*/
public function getNamespace($namespace = null
) { $key =
$namespace === null ? '__ignore' :
(string) $namespace;
if (!
isset($this->namespaces
[$key])) { $this->namespaces
[$key] =
new $this->
defaultNamespaceClass([ 'adapter' =>
$this->adapter,
'name' =>
$namespace,
'section' =>
$this->defaultSection,
]);
} return $this->namespaces
[$key];
} /**
* Adapter class of the snippet manager
*
* @return Enlight_Config_Adapter
*/