Skip to content

Commit 86a89b7

Browse files
committed
Возможность отключать кэширование
1 parent 957b658 commit 86a89b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Twig/TwigInitializer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ class TwigInitializer
4343
*
4444
* @param FilesystemLoader $loader Загрузчик.
4545
* @param string $debug Среда.
46-
* @param string $cachePath Путь к кэшу (серверный).
46+
* @param string|null $cachePath Путь к кэшу (серверный).
4747
* @param array|null $twigOptions Опции Твига.
4848
*/
4949
public function __construct(
5050
FilesystemLoader $loader,
5151
string $debug,
52-
string $cachePath,
52+
?string $cachePath,
5353
?array $twigOptions = null
5454
) {
5555
$this->loader = $loader;
@@ -113,14 +113,14 @@ public function addPath(string $path) : void
113113
*
114114
* @param FilesystemLoader $loader Загрузчик.
115115
* @param string $debug Среда.
116-
* @param string $cachePath Путь к кэшу (серверный).
116+
* @param string|null $cachePath Путь к кэшу (серверный).
117117
*
118118
* @return Environment
119119
*/
120120
private function initTwig(
121121
FilesystemLoader $loader,
122122
string $debug,
123-
string $cachePath
123+
?string $cachePath
124124
) : Environment {
125125

126126
return new Environment(

0 commit comments

Comments
 (0)