/** * Constructor. * * @param FileLocatorInterface $locator A FileLocatorInterface instance * @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance */ public function __construct(FileLocatorInterface $locator, TemplateNameParserInterface $parser) { parent::__construct(array()); $this->locator = $locator; $this->parser = $parser; $this->cache = array(); $container = AbstractApp::getCont(); // no niestety pojawiły się problemy z nadpisywaniem tego serwisu, później może zrobię to tak jak Bóg nakazał... // ale to nie jest pilne bo logicznie wszystko tutaj jest poprawne ale nie wedłóg konwencji symfonowej $this->container = $container; $this->dev = $container->getParameter('kernel.environment') == 'dev'; $this->symlinkloader = AbstractApp::getStpaConfig('yui.symlinkloader', false); $this->loader = is_string($this->symlinkloader) ? trim($this->symlinkloader) : ''; }