1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Lagdo\Symfony\Facades; |
4
|
|
|
|
5
|
|
|
use Twig\Extension\ExtensionInterface; |
|
|
|
|
6
|
|
|
use Twig\Loader\LoaderInterface; |
|
|
|
|
7
|
|
|
use Twig\RuntimeLoader\RuntimeLoaderInterface; |
|
|
|
|
8
|
|
|
use Twig\TokenParser\TokenParserInterface; |
|
|
|
|
9
|
|
|
use Twig\Cache\CacheInterface; |
|
|
|
|
10
|
|
|
use Twig\TemplateWrapper; |
|
|
|
|
11
|
|
|
use Twig\Template; |
|
|
|
|
12
|
|
|
use Twig\TwigFilter; |
|
|
|
|
13
|
|
|
use Twig\TwigTest; |
|
|
|
|
14
|
|
|
use Twig\TwigFunction; |
|
|
|
|
15
|
|
|
use Twig\Environment; |
|
|
|
|
16
|
|
|
use Lagdo\Symfony\Facades\AbstractFacade; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @method static void enableDebug() |
20
|
|
|
* @method static void disableDebug() |
21
|
|
|
* @method static bool isDebug() |
22
|
|
|
* @method static void enableAutoReload() |
23
|
|
|
* @method static void disableAutoReload() |
24
|
|
|
* @method static bool isAutoReload() |
25
|
|
|
* @method static void enableStrictVariables() |
26
|
|
|
* @method static bool isStrictVariables() |
27
|
|
|
* @method static CacheInterface|string|false getCache(bool $original = true) |
28
|
|
|
* @method static void setCache(CacheInterface|string|false $cache) |
29
|
|
|
* @method static string render(string|TemplateWrapper $name, array $context = []) |
30
|
|
|
* @method static string display(string|TemplateWrapper $name, array $context = []) |
31
|
|
|
* @method static TemplateWrapper load(string|TemplateWrapper $name) |
32
|
|
|
* @method static TemplateWrapper createTemplate(string $template, string $name = null) |
33
|
|
|
* @method static bool isTemplateFresh(string $name, int $time) |
34
|
|
|
* @method static TemplateWrapper|Template resolveTemplate(string|TemplateWrapper|array $names) |
35
|
|
|
* @method static void setLoader(LoaderInterface $loader) |
36
|
|
|
* @method static LoaderInterface getLoader() |
37
|
|
|
* @method static void addRuntimeLoader(RuntimeLoaderInterface $loader) |
38
|
|
|
* @method static object getRuntime(string $class) |
39
|
|
|
* @method static void setCharset(string $charset) |
40
|
|
|
* @method static string getCharset() |
41
|
|
|
* @method static bool hasExtension(string $class) |
42
|
|
|
* @method static ExtensionInterface getExtension(string $class) |
43
|
|
|
* @method static void addExtension(ExtensionInterface $extension) |
44
|
|
|
* @method static void setExtensions(array $extensions) |
45
|
|
|
* @method static ExtensionInterface[] getExtensions() |
46
|
|
|
* @method static TokenParserInterface[] getTags() |
47
|
|
|
* @method static void addNodeVisitor(NodeVisitorInterface $visitor) |
48
|
|
|
* @method static NodeVisitorInterface[] getNodeVisitors() |
49
|
|
|
* @method static void addFilter(TwigFilter $filter) |
50
|
|
|
* @method static void registerUndefinedFilterCallback(callable $callable) |
51
|
|
|
* @method static void addTest(TwigTest $test) |
52
|
|
|
* @method static void addFunction(TwigFunction $function) |
53
|
|
|
* @method static void registerUndefinedFunctionCallback(callable $callable) |
54
|
|
|
* @method static void addGlobal(string $name, mixed $value) |
55
|
|
|
* @method static array mergeGlobals(array $context) |
56
|
|
|
*/ |
57
|
|
|
class View extends AbstractFacade |
58
|
|
|
{ |
59
|
|
|
/** |
60
|
|
|
* @inheritdoc |
61
|
|
|
*/ |
62
|
|
|
protected static function getServiceIdentifier() |
63
|
|
|
{ |
64
|
|
|
return Environment::class; |
65
|
|
|
} |
66
|
|
|
} |
67
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths