Skip to content

Commit 957b658

Browse files
committed
Удаление старых твиговских классов
1 parent b54ecbe commit 957b658

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/Twig/TwigInitializer.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Twig\Environment;
66
use Twig\Error\LoaderError;
7-
use Twig_Environment;
87
use Twig\Loader\FilesystemLoader;
98

109
/**
@@ -15,7 +14,7 @@
1514
class 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,

0 commit comments

Comments
 (0)