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 4
4
5
5
use Twig \Environment ;
6
6
use Twig \Error \LoaderError ;
7
- use Twig_Environment ;
8
7
use Twig \Loader \FilesystemLoader ;
9
8
10
9
/**
15
14
class TwigInitializer
16
15
{
17
16
/**
18
- * @var Twig_Environment Twig.
17
+ * @var Environment Twig.
19
18
*/
20
19
private $ twigEnvironment ;
21
20
@@ -116,15 +115,15 @@ public function addPath(string $path) : void
116
115
* @param string $debug Среда.
117
116
* @param string $cachePath Путь к кэшу (серверный).
118
117
*
119
- * @return Twig_Environment
118
+ * @return Environment
120
119
*/
121
120
private function initTwig (
122
121
FilesystemLoader $ loader ,
123
122
string $ debug ,
124
123
string $ cachePath
125
- ) : Twig_Environment {
124
+ ) : Environment {
126
125
127
- return new Twig_Environment (
126
+ return new Environment (
128
127
$ loader ,
129
128
[
130
129
'debug ' => (bool )$ debug ,
You can’t perform that action at this time.
0 commit comments