prefixes = $prefixes; } /** * {@inheritDoc} */ public function resolve($name, Renderer $renderer = null) { foreach ($this->prefixes as $prefix => & $resolver) { if (strpos($name, $prefix) !== 0) { continue; } if (! $resolver instanceof ResolverInterface) { $resolver = new TemplatePathStack(array('script_paths' => (array) $resolver)); } if ($result = $resolver->resolve(substr($name, strlen($prefix)), $renderer)) { return $result; } } return; } }