Constructor.
public __construct ( Symfony\Component\Config\FileLocatorInterface $locator, Symfony\Component\Templating\TemplateNameParserInterface $parser, string | null $rootPath = null ) | ||
$locator | Symfony\Component\Config\FileLocatorInterface | A FileLocatorInterface instance |
$parser | Symfony\Component\Templating\TemplateNameParserInterface | A TemplateNameParserInterface instance |
$rootPath | string | null | The root path common to all relative paths (null for getcwd()) |
/** * @param ThemeManager $themeManager * @param FileLocatorInterface $locator * @param TemplateNameParserInterface $parser */ function __construct(ThemeManager $themeManager, FileLocatorInterface $locator, TemplateNameParserInterface $parser) { $this->themeManager = $themeManager; parent::__construct($locator, $parser); }
public function __construct($defaultLoadBundle, FileLocatorInterface $locator, TemplateNameParserInterface $parser) { $this->defaultLoadBundle = $defaultLoadBundle; parent::__construct($locator, $parser); }
public function __construct(KernelInterface $kernel, FileLocatorInterface $locator, TemplateNameParserInterface $parser) { $this->kernel = $kernel; $this->cache = []; parent::__construct($locator, $parser); }