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);
            }
        }
    }