/**
  * {@inheritDoc}
  */
 public function addPath($path, $namespace = null)
 {
     $this->resolver->addTemplatePath($path, $namespace);
 }
 /**
  * Inject paths into the default resolver.
  *
  * @param array $config Path configuration
  * @param Resolver\DefaultResolver $resolver
  */
 private function injectResolverPaths($config, Resolver\DefaultResolver $resolver)
 {
     foreach ($config as $index => $paths) {
         $namespace = is_numeric($index) ? null : $index;
         foreach ((array) $paths as $path) {
             $resolver->addTemplatePath($path, $namespace);
         }
     }
 }