File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 44
55use Twig \Environment ;
66use Twig \Error \LoaderError ;
7- use Twig_Environment ;
87use Twig \Loader \FilesystemLoader ;
98
109/**
1514class TwigInitializer
1615{
1716 /**
18- * @var Twig_Environment Twig.
17+ * @var Environment Twig.
1918 */
2019 private $ twigEnvironment ;
2120
@@ -116,15 +115,15 @@ public function addPath(string $path) : void
116115 * @param string $debug Среда.
117116 * @param string $cachePath Путь к кэшу (серверный).
118117 *
119- * @return Twig_Environment
118+ * @return Environment
120119 */
121120 private function initTwig (
122121 FilesystemLoader $ loader ,
123122 string $ debug ,
124123 string $ cachePath
125- ) : Twig_Environment {
124+ ) : Environment {
126125
127- return new Twig_Environment (
126+ return new Environment (
128127 $ loader ,
129128 [
130129 'debug ' => (bool )$ debug ,
You can’t perform that action at this time.
0 commit comments