Ajout du FR
Ajout du FR + correction du "functions.php"
This commit is contained in:
18
vendor/twig/twig/.php_cs.dist
vendored
Normal file
18
vendor/twig/twig/.php_cs.dist
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
return PhpCsFixer\Config::create()
|
||||
->setRules([
|
||||
'@Symfony' => true,
|
||||
'@Symfony:risky' => true,
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'php_unit_fqcn_annotation' => true,
|
||||
'no_unreachable_default_argument_value' => false,
|
||||
'braces' => ['allow_single_line_closure' => true],
|
||||
'heredoc_to_nowdoc' => false,
|
||||
'ordered_imports' => true,
|
||||
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
|
||||
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'all'],
|
||||
])
|
||||
->setRiskyAllowed(true)
|
||||
->setFinder(PhpCsFixer\Finder::create()->in(__DIR__))
|
||||
;
|
||||
31
vendor/twig/twig/LICENSE
vendored
Normal file
31
vendor/twig/twig/LICENSE
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
Copyright (c) 2009-2019 by the Twig Team.
|
||||
|
||||
Some rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
|
||||
* The names of the contributors may not be used to endorse or
|
||||
promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
48
vendor/twig/twig/composer.json
vendored
Normal file
48
vendor/twig/twig/composer.json
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "twig/twig",
|
||||
"type": "library",
|
||||
"description": "Twig, the flexible, fast, and secure template language for PHP",
|
||||
"keywords": ["templating"],
|
||||
"homepage": "https://twig.symfony.com",
|
||||
"license": "BSD-3-Clause",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Fabien Potencier",
|
||||
"email": "fabien@symfony.com",
|
||||
"homepage": "http://fabien.potencier.org",
|
||||
"role": "Lead Developer"
|
||||
},
|
||||
{
|
||||
"name": "Twig Team",
|
||||
"homepage": "https://twig.symfony.com/contributors",
|
||||
"role": "Contributors"
|
||||
},
|
||||
{
|
||||
"name": "Armin Ronacher",
|
||||
"email": "armin.ronacher@active-4.com",
|
||||
"role": "Project Founder"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.4.0",
|
||||
"symfony/polyfill-ctype": "^1.8"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/phpunit-bridge": "^3.4.19|^4.1.8",
|
||||
"symfony/debug": "^2.7",
|
||||
"psr/container": "^1.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0" : {
|
||||
"Twig_" : "lib/"
|
||||
},
|
||||
"psr-4" : {
|
||||
"Twig\\" : "src/"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.39-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
52
vendor/twig/twig/lib/Twig/Autoloader.php
vendored
Normal file
52
vendor/twig/twig/lib/Twig/Autoloader.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
@trigger_error('The Twig_Autoloader class is deprecated since version 1.21 and will be removed in 2.0. Use Composer instead.', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Autoloads Twig classes.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.21 and will be removed in 2.0. Use Composer instead. 2.0.
|
||||
*/
|
||||
class Twig_Autoloader
|
||||
{
|
||||
/**
|
||||
* Registers Twig_Autoloader as an SPL autoloader.
|
||||
*
|
||||
* @param bool $prepend whether to prepend the autoloader or not
|
||||
*/
|
||||
public static function register($prepend = false)
|
||||
{
|
||||
@trigger_error('Using Twig_Autoloader is deprecated since version 1.21. Use Composer instead.', E_USER_DEPRECATED);
|
||||
|
||||
spl_autoload_register([__CLASS__, 'autoload'], true, $prepend);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles autoloading of classes.
|
||||
*
|
||||
* @param string $class a class name
|
||||
*/
|
||||
public static function autoload($class)
|
||||
{
|
||||
if (0 !== strpos($class, 'Twig')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_file($file = __DIR__.'/../'.str_replace(['_', "\0"], ['/', ''], $class).'.php')) {
|
||||
require $file;
|
||||
} elseif (is_file($file = __DIR__.'/../../src/'.str_replace(['Twig\\', '\\', "\0"], ['', '/', ''], $class).'.php')) {
|
||||
require $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/BaseNodeVisitor.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/BaseNodeVisitor.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\NodeVisitor\AbstractNodeVisitor;
|
||||
|
||||
class_exists('Twig\NodeVisitor\AbstractNodeVisitor');
|
||||
|
||||
if (\false) {
|
||||
class Twig_BaseNodeVisitor extends AbstractNodeVisitor
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Cache/Filesystem.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Cache/Filesystem.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Cache\FilesystemCache;
|
||||
|
||||
class_exists('Twig\Cache\FilesystemCache');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Cache_Filesystem extends FilesystemCache
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Cache/Null.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Cache/Null.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Cache\NullCache;
|
||||
|
||||
class_exists('Twig\Cache\NullCache');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Cache_Null extends NullCache
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/CacheInterface.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/CacheInterface.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Cache\CacheInterface;
|
||||
|
||||
class_exists('Twig\Cache\CacheInterface');
|
||||
|
||||
if (\false) {
|
||||
class Twig_CacheInterface extends CacheInterface
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Compiler.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Compiler.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Compiler;
|
||||
|
||||
class_exists('Twig\Compiler');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Compiler extends Compiler
|
||||
{
|
||||
}
|
||||
}
|
||||
34
vendor/twig/twig/lib/Twig/CompilerInterface.php
vendored
Normal file
34
vendor/twig/twig/lib/Twig/CompilerInterface.php
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Interface implemented by compiler classes.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 3.0)
|
||||
*/
|
||||
interface Twig_CompilerInterface
|
||||
{
|
||||
/**
|
||||
* Compiles a node.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function compile(Twig_NodeInterface $node);
|
||||
|
||||
/**
|
||||
* Gets the current PHP code after compilation.
|
||||
*
|
||||
* @return string The PHP code
|
||||
*/
|
||||
public function getSource();
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/ContainerRuntimeLoader.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/ContainerRuntimeLoader.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\RuntimeLoader\ContainerRuntimeLoader;
|
||||
|
||||
class_exists('Twig\RuntimeLoader\ContainerRuntimeLoader');
|
||||
|
||||
if (\false) {
|
||||
class Twig_ContainerRuntimeLoader extends ContainerRuntimeLoader
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Environment.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Environment.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Environment;
|
||||
|
||||
class_exists('Twig\Environment');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Environment extends Environment
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Error.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Error.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Error\Error;
|
||||
|
||||
class_exists('Twig\Error\Error');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Error extends Error
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Error/Loader.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Error/Loader.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Error\LoaderError;
|
||||
|
||||
class_exists('Twig\Error\LoaderError');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Error_Loader extends LoaderError
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Error/Runtime.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Error/Runtime.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Error\RuntimeError;
|
||||
|
||||
class_exists('Twig\Error\RuntimeError');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Error_Runtime extends RuntimeError
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Error/Syntax.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Error/Syntax.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Error\SyntaxError;
|
||||
|
||||
class_exists('Twig\Error\SyntaxError');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Error_Syntax extends SyntaxError
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/ExistsLoaderInterface.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/ExistsLoaderInterface.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Loader\ExistsLoaderInterface;
|
||||
|
||||
class_exists('Twig\Loader\ExistsLoaderInterface');
|
||||
|
||||
if (\false) {
|
||||
class Twig_ExistsLoaderInterface extends ExistsLoaderInterface
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/ExpressionParser.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/ExpressionParser.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\ExpressionParser;
|
||||
|
||||
class_exists('Twig\ExpressionParser');
|
||||
|
||||
if (\false) {
|
||||
class Twig_ExpressionParser extends ExpressionParser
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Extension.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Extension.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\AbstractExtension;
|
||||
|
||||
class_exists('Twig\Extension\AbstractExtension');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Extension extends AbstractExtension
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Extension/Core.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Extension/Core.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\CoreExtension;
|
||||
|
||||
class_exists('Twig\Extension\CoreExtension');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Extension_Core extends CoreExtension
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Extension/Debug.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Extension/Debug.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\DebugExtension;
|
||||
|
||||
class_exists('Twig\Extension\DebugExtension');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Extension_Debug extends DebugExtension
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Extension/Escaper.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Extension/Escaper.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\EscaperExtension;
|
||||
|
||||
class_exists('Twig\Extension\EscaperExtension');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Extension_Escaper extends EscaperExtension
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Extension/GlobalsInterface.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Extension/GlobalsInterface.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\GlobalsInterface;
|
||||
|
||||
class_exists('Twig\Extension\GlobalsInterface');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Extension_GlobalsInterface extends GlobalsInterface
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Extension/InitRuntimeInterface.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Extension/InitRuntimeInterface.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\InitRuntimeInterface;
|
||||
|
||||
class_exists('Twig\Extension\InitRuntimeInterface');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Extension_InitRuntimeInterface extends InitRuntimeInterface
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Extension/Optimizer.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Extension/Optimizer.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\OptimizerExtension;
|
||||
|
||||
class_exists('Twig\Extension\OptimizerExtension');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Extension_Optimizer extends OptimizerExtension
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Extension/Profiler.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Extension/Profiler.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\ProfilerExtension;
|
||||
|
||||
class_exists('Twig\Extension\ProfilerExtension');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Extension_Profiler extends ProfilerExtension
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Extension/Sandbox.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Extension/Sandbox.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\SandboxExtension;
|
||||
|
||||
class_exists('Twig\Extension\SandboxExtension');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Extension_Sandbox extends SandboxExtension
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Extension/Staging.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Extension/Staging.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\StagingExtension;
|
||||
|
||||
class_exists('Twig\Extension\StagingExtension');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Extension_Staging extends StagingExtension
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Extension/StringLoader.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Extension/StringLoader.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\StringLoaderExtension;
|
||||
|
||||
class_exists('Twig\Extension\StringLoaderExtension');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Extension_StringLoader extends StringLoaderExtension
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/ExtensionInterface.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/ExtensionInterface.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Extension\ExtensionInterface;
|
||||
|
||||
class_exists('Twig\Extension\ExtensionInterface');
|
||||
|
||||
if (\false) {
|
||||
class Twig_ExtensionInterface extends ExtensionInterface
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/FactoryRuntimeLoader.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/FactoryRuntimeLoader.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\RuntimeLoader\FactoryRuntimeLoader;
|
||||
|
||||
class_exists('Twig\RuntimeLoader\FactoryRuntimeLoader');
|
||||
|
||||
if (\false) {
|
||||
class Twig_FactoryRuntimeLoader extends FactoryRuntimeLoader
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/FileExtensionEscapingStrategy.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/FileExtensionEscapingStrategy.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\FileExtensionEscapingStrategy;
|
||||
|
||||
class_exists('Twig\FileExtensionEscapingStrategy');
|
||||
|
||||
if (\false) {
|
||||
class Twig_FileExtensionEscapingStrategy extends FileExtensionEscapingStrategy
|
||||
{
|
||||
}
|
||||
}
|
||||
86
vendor/twig/twig/lib/Twig/Filter.php
vendored
Normal file
86
vendor/twig/twig/lib/Twig/Filter.php
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Twig\Node\Node;
|
||||
|
||||
@trigger_error('The Twig_Filter class is deprecated since version 1.12 and will be removed in 2.0. Use \Twig\TwigFilter instead.', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Represents a template filter.
|
||||
*
|
||||
* Use \Twig\TwigFilter instead.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
abstract class Twig_Filter implements Twig_FilterInterface, Twig_FilterCallableInterface
|
||||
{
|
||||
protected $options;
|
||||
protected $arguments = [];
|
||||
|
||||
public function __construct(array $options = [])
|
||||
{
|
||||
$this->options = array_merge([
|
||||
'needs_environment' => false,
|
||||
'needs_context' => false,
|
||||
'pre_escape' => null,
|
||||
'preserves_safety' => null,
|
||||
'callable' => null,
|
||||
], $options);
|
||||
}
|
||||
|
||||
public function setArguments($arguments)
|
||||
{
|
||||
$this->arguments = $arguments;
|
||||
}
|
||||
|
||||
public function getArguments()
|
||||
{
|
||||
return $this->arguments;
|
||||
}
|
||||
|
||||
public function needsEnvironment()
|
||||
{
|
||||
return $this->options['needs_environment'];
|
||||
}
|
||||
|
||||
public function needsContext()
|
||||
{
|
||||
return $this->options['needs_context'];
|
||||
}
|
||||
|
||||
public function getSafe(Node $filterArgs)
|
||||
{
|
||||
if (isset($this->options['is_safe'])) {
|
||||
return $this->options['is_safe'];
|
||||
}
|
||||
|
||||
if (isset($this->options['is_safe_callback'])) {
|
||||
return \call_user_func($this->options['is_safe_callback'], $filterArgs);
|
||||
}
|
||||
}
|
||||
|
||||
public function getPreservesSafety()
|
||||
{
|
||||
return $this->options['preserves_safety'];
|
||||
}
|
||||
|
||||
public function getPreEscape()
|
||||
{
|
||||
return $this->options['pre_escape'];
|
||||
}
|
||||
|
||||
public function getCallable()
|
||||
{
|
||||
return $this->options['callable'];
|
||||
}
|
||||
}
|
||||
40
vendor/twig/twig/lib/Twig/Filter/Function.php
vendored
Normal file
40
vendor/twig/twig/lib/Twig/Filter/Function.php
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
@trigger_error('The Twig_Filter_Function class is deprecated since version 1.12 and will be removed in 2.0. Use \Twig\TwigFilter instead.', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Represents a function template filter.
|
||||
*
|
||||
* Use \Twig\TwigFilter instead.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
class Twig_Filter_Function extends Twig_Filter
|
||||
{
|
||||
protected $function;
|
||||
|
||||
public function __construct($function, array $options = [])
|
||||
{
|
||||
$options['callable'] = $function;
|
||||
|
||||
parent::__construct($options);
|
||||
|
||||
$this->function = $function;
|
||||
}
|
||||
|
||||
public function compile()
|
||||
{
|
||||
return $this->function;
|
||||
}
|
||||
}
|
||||
44
vendor/twig/twig/lib/Twig/Filter/Method.php
vendored
Normal file
44
vendor/twig/twig/lib/Twig/Filter/Method.php
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Twig\Extension\ExtensionInterface;
|
||||
|
||||
@trigger_error('The Twig_Filter_Method class is deprecated since version 1.12 and will be removed in 2.0. Use \Twig\TwigFilter instead.', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Represents a method template filter.
|
||||
*
|
||||
* Use \Twig\TwigFilter instead.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
class Twig_Filter_Method extends Twig_Filter
|
||||
{
|
||||
protected $extension;
|
||||
protected $method;
|
||||
|
||||
public function __construct(ExtensionInterface $extension, $method, array $options = [])
|
||||
{
|
||||
$options['callable'] = [$extension, $method];
|
||||
|
||||
parent::__construct($options);
|
||||
|
||||
$this->extension = $extension;
|
||||
$this->method = $method;
|
||||
}
|
||||
|
||||
public function compile()
|
||||
{
|
||||
return sprintf('$this->env->getExtension(\'%s\')->%s', \get_class($this->extension), $this->method);
|
||||
}
|
||||
}
|
||||
42
vendor/twig/twig/lib/Twig/Filter/Node.php
vendored
Normal file
42
vendor/twig/twig/lib/Twig/Filter/Node.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
@trigger_error('The Twig_Filter_Node class is deprecated since version 1.12 and will be removed in 2.0. Use \Twig\TwigFilter instead.', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Represents a template filter as a node.
|
||||
*
|
||||
* Use \Twig\TwigFilter instead.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
class Twig_Filter_Node extends Twig_Filter
|
||||
{
|
||||
protected $class;
|
||||
|
||||
public function __construct($class, array $options = [])
|
||||
{
|
||||
parent::__construct($options);
|
||||
|
||||
$this->class = $class;
|
||||
}
|
||||
|
||||
public function getClass()
|
||||
{
|
||||
return $this->class;
|
||||
}
|
||||
|
||||
public function compile()
|
||||
{
|
||||
}
|
||||
}
|
||||
24
vendor/twig/twig/lib/Twig/FilterCallableInterface.php
vendored
Normal file
24
vendor/twig/twig/lib/Twig/FilterCallableInterface.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a callable template filter.
|
||||
*
|
||||
* Use \Twig\TwigFilter instead.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
interface Twig_FilterCallableInterface
|
||||
{
|
||||
public function getCallable();
|
||||
}
|
||||
45
vendor/twig/twig/lib/Twig/FilterInterface.php
vendored
Normal file
45
vendor/twig/twig/lib/Twig/FilterInterface.php
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Twig\Node\Node;
|
||||
|
||||
/**
|
||||
* Represents a template filter.
|
||||
*
|
||||
* Use \Twig\TwigFilter instead.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
interface Twig_FilterInterface
|
||||
{
|
||||
/**
|
||||
* Compiles a filter.
|
||||
*
|
||||
* @return string The PHP code for the filter
|
||||
*/
|
||||
public function compile();
|
||||
|
||||
public function needsEnvironment();
|
||||
|
||||
public function needsContext();
|
||||
|
||||
public function getSafe(Node $filterArgs);
|
||||
|
||||
public function getPreservesSafety();
|
||||
|
||||
public function getPreEscape();
|
||||
|
||||
public function setArguments($arguments);
|
||||
|
||||
public function getArguments();
|
||||
}
|
||||
76
vendor/twig/twig/lib/Twig/Function.php
vendored
Normal file
76
vendor/twig/twig/lib/Twig/Function.php
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Twig\Node\Node;
|
||||
|
||||
@trigger_error('The Twig_Function class is deprecated since version 1.12 and will be removed in 2.0. Use \Twig\TwigFunction instead.', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Represents a template function.
|
||||
*
|
||||
* Use \Twig\TwigFunction instead.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
abstract class Twig_Function implements Twig_FunctionInterface, Twig_FunctionCallableInterface
|
||||
{
|
||||
protected $options;
|
||||
protected $arguments = [];
|
||||
|
||||
public function __construct(array $options = [])
|
||||
{
|
||||
$this->options = array_merge([
|
||||
'needs_environment' => false,
|
||||
'needs_context' => false,
|
||||
'callable' => null,
|
||||
], $options);
|
||||
}
|
||||
|
||||
public function setArguments($arguments)
|
||||
{
|
||||
$this->arguments = $arguments;
|
||||
}
|
||||
|
||||
public function getArguments()
|
||||
{
|
||||
return $this->arguments;
|
||||
}
|
||||
|
||||
public function needsEnvironment()
|
||||
{
|
||||
return $this->options['needs_environment'];
|
||||
}
|
||||
|
||||
public function needsContext()
|
||||
{
|
||||
return $this->options['needs_context'];
|
||||
}
|
||||
|
||||
public function getSafe(Node $functionArgs)
|
||||
{
|
||||
if (isset($this->options['is_safe'])) {
|
||||
return $this->options['is_safe'];
|
||||
}
|
||||
|
||||
if (isset($this->options['is_safe_callback'])) {
|
||||
return \call_user_func($this->options['is_safe_callback'], $functionArgs);
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
public function getCallable()
|
||||
{
|
||||
return $this->options['callable'];
|
||||
}
|
||||
}
|
||||
41
vendor/twig/twig/lib/Twig/Function/Function.php
vendored
Normal file
41
vendor/twig/twig/lib/Twig/Function/Function.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
* (c) Arnaud Le Blanc
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
@trigger_error('The Twig_Function_Function class is deprecated since version 1.12 and will be removed in 2.0. Use \Twig\TwigFunction instead.', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Represents a function template function.
|
||||
*
|
||||
* Use \Twig\TwigFunction instead.
|
||||
*
|
||||
* @author Arnaud Le Blanc <arnaud.lb@gmail.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
class Twig_Function_Function extends Twig_Function
|
||||
{
|
||||
protected $function;
|
||||
|
||||
public function __construct($function, array $options = [])
|
||||
{
|
||||
$options['callable'] = $function;
|
||||
|
||||
parent::__construct($options);
|
||||
|
||||
$this->function = $function;
|
||||
}
|
||||
|
||||
public function compile()
|
||||
{
|
||||
return $this->function;
|
||||
}
|
||||
}
|
||||
45
vendor/twig/twig/lib/Twig/Function/Method.php
vendored
Normal file
45
vendor/twig/twig/lib/Twig/Function/Method.php
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
* (c) Arnaud Le Blanc
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Twig\Extension\ExtensionInterface;
|
||||
|
||||
@trigger_error('The Twig_Function_Method class is deprecated since version 1.12 and will be removed in 2.0. Use \Twig\TwigFunction instead.', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Represents a method template function.
|
||||
*
|
||||
* Use \Twig\TwigFunction instead.
|
||||
*
|
||||
* @author Arnaud Le Blanc <arnaud.lb@gmail.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
class Twig_Function_Method extends Twig_Function
|
||||
{
|
||||
protected $extension;
|
||||
protected $method;
|
||||
|
||||
public function __construct(ExtensionInterface $extension, $method, array $options = [])
|
||||
{
|
||||
$options['callable'] = [$extension, $method];
|
||||
|
||||
parent::__construct($options);
|
||||
|
||||
$this->extension = $extension;
|
||||
$this->method = $method;
|
||||
}
|
||||
|
||||
public function compile()
|
||||
{
|
||||
return sprintf('$this->env->getExtension(\'%s\')->%s', \get_class($this->extension), $this->method);
|
||||
}
|
||||
}
|
||||
42
vendor/twig/twig/lib/Twig/Function/Node.php
vendored
Normal file
42
vendor/twig/twig/lib/Twig/Function/Node.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
@trigger_error('The Twig_Function_Node class is deprecated since version 1.12 and will be removed in 2.0. Use \Twig\TwigFunction instead.', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Represents a template function as a node.
|
||||
*
|
||||
* Use \Twig\TwigFunction instead.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
class Twig_Function_Node extends Twig_Function
|
||||
{
|
||||
protected $class;
|
||||
|
||||
public function __construct($class, array $options = [])
|
||||
{
|
||||
parent::__construct($options);
|
||||
|
||||
$this->class = $class;
|
||||
}
|
||||
|
||||
public function getClass()
|
||||
{
|
||||
return $this->class;
|
||||
}
|
||||
|
||||
public function compile()
|
||||
{
|
||||
}
|
||||
}
|
||||
24
vendor/twig/twig/lib/Twig/FunctionCallableInterface.php
vendored
Normal file
24
vendor/twig/twig/lib/Twig/FunctionCallableInterface.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a callable template function.
|
||||
*
|
||||
* Use \Twig\TwigFunction instead.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
interface Twig_FunctionCallableInterface
|
||||
{
|
||||
public function getCallable();
|
||||
}
|
||||
42
vendor/twig/twig/lib/Twig/FunctionInterface.php
vendored
Normal file
42
vendor/twig/twig/lib/Twig/FunctionInterface.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
* (c) Arnaud Le Blanc
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Twig\Node\Node;
|
||||
|
||||
/**
|
||||
* Represents a template function.
|
||||
*
|
||||
* Use \Twig\TwigFunction instead.
|
||||
*
|
||||
* @author Arnaud Le Blanc <arnaud.lb@gmail.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 2.0)
|
||||
*/
|
||||
interface Twig_FunctionInterface
|
||||
{
|
||||
/**
|
||||
* Compiles a function.
|
||||
*
|
||||
* @return string The PHP code for the function
|
||||
*/
|
||||
public function compile();
|
||||
|
||||
public function needsEnvironment();
|
||||
|
||||
public function needsContext();
|
||||
|
||||
public function getSafe(Node $filterArgs);
|
||||
|
||||
public function setArguments($arguments);
|
||||
|
||||
public function getArguments();
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Lexer.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Lexer.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Lexer;
|
||||
|
||||
class_exists('Twig\Lexer');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Lexer extends Lexer
|
||||
{
|
||||
}
|
||||
}
|
||||
36
vendor/twig/twig/lib/Twig/LexerInterface.php
vendored
Normal file
36
vendor/twig/twig/lib/Twig/LexerInterface.php
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Twig\Error\SyntaxError;
|
||||
use Twig\Source;
|
||||
use Twig\TokenStream;
|
||||
|
||||
/**
|
||||
* Interface implemented by lexer classes.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.12 (to be removed in 3.0)
|
||||
*/
|
||||
interface Twig_LexerInterface
|
||||
{
|
||||
/**
|
||||
* Tokenizes a source code.
|
||||
*
|
||||
* @param string|Source $code The source code
|
||||
* @param string $name A unique identifier for the source code
|
||||
*
|
||||
* @return TokenStream
|
||||
*
|
||||
* @throws SyntaxError When the code is syntactically wrong
|
||||
*/
|
||||
public function tokenize($code, $name = null);
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Loader/Array.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Loader/Array.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Loader\ArrayLoader;
|
||||
|
||||
class_exists('Twig\Loader\ArrayLoader');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Loader_Array extends ArrayLoader
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Loader/Chain.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Loader/Chain.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Loader\ChainLoader;
|
||||
|
||||
class_exists('Twig\Loader\ChainLoader');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Loader_Chain extends ChainLoader
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Loader/Filesystem.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Loader/Filesystem.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Loader\FilesystemLoader;
|
||||
|
||||
class_exists('Twig\Loader\FilesystemLoader');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Loader_Filesystem extends FilesystemLoader
|
||||
{
|
||||
}
|
||||
}
|
||||
63
vendor/twig/twig/lib/Twig/Loader/String.php
vendored
Normal file
63
vendor/twig/twig/lib/Twig/Loader/String.php
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Twig\Loader\ExistsLoaderInterface;
|
||||
use Twig\Loader\LoaderInterface;
|
||||
use Twig\Loader\SourceContextLoaderInterface;
|
||||
use Twig\Source;
|
||||
|
||||
@trigger_error('The Twig_Loader_String class is deprecated since version 1.18.1 and will be removed in 2.0. Use "Twig\Loader\ArrayLoader" instead or "Twig\Environment::createTemplate()".', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Loads a template from a string.
|
||||
*
|
||||
* This loader should NEVER be used. It only exists for Twig internal purposes.
|
||||
*
|
||||
* When using this loader with a cache mechanism, you should know that a new cache
|
||||
* key is generated each time a template content "changes" (the cache key being the
|
||||
* source code of the template). If you don't want to see your cache grows out of
|
||||
* control, you need to take care of clearing the old cache file by yourself.
|
||||
*
|
||||
* @deprecated since 1.18.1 (to be removed in 2.0)
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
class Twig_Loader_String implements LoaderInterface, ExistsLoaderInterface, SourceContextLoaderInterface
|
||||
{
|
||||
public function getSource($name)
|
||||
{
|
||||
@trigger_error(sprintf('Calling "getSource" on "%s" is deprecated since 1.27. Use getSourceContext() instead.', \get_class($this)), E_USER_DEPRECATED);
|
||||
|
||||
return $name;
|
||||
}
|
||||
|
||||
public function getSourceContext($name)
|
||||
{
|
||||
return new Source($name, $name);
|
||||
}
|
||||
|
||||
public function exists($name)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getCacheKey($name)
|
||||
{
|
||||
return $name;
|
||||
}
|
||||
|
||||
public function isFresh($name, $time)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/LoaderInterface.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/LoaderInterface.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Loader\LoaderInterface;
|
||||
|
||||
class_exists('Twig\Loader\LoaderInterface');
|
||||
|
||||
if (\false) {
|
||||
class Twig_LoaderInterface extends LoaderInterface
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Markup.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Markup.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Markup;
|
||||
|
||||
class_exists('Twig\Markup');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Markup extends Markup
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Node;
|
||||
|
||||
class_exists('Twig\Node\Node');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node extends Node
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/AutoEscape.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/AutoEscape.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\AutoEscapeNode;
|
||||
|
||||
class_exists('Twig\Node\AutoEscapeNode');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_AutoEscape extends AutoEscapeNode
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Block.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Block.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\BlockNode;
|
||||
|
||||
class_exists('Twig\Node\BlockNode');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Block extends BlockNode
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/BlockReference.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/BlockReference.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\BlockReferenceNode;
|
||||
|
||||
class_exists('Twig\Node\BlockReferenceNode');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_BlockReference extends BlockReferenceNode
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Body.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Body.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\BodyNode;
|
||||
|
||||
class_exists('Twig\Node\BodyNode');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Body extends BodyNode
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/CheckSecurity.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/CheckSecurity.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\CheckSecurityNode;
|
||||
|
||||
class_exists('Twig\Node\CheckSecurityNode');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_CheckSecurity extends CheckSecurityNode
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Deprecated.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Deprecated.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\DeprecatedNode;
|
||||
|
||||
class_exists('Twig\Node\DeprecatedNode');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Deprecated extends DeprecatedNode
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Do.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Do.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\DoNode;
|
||||
|
||||
class_exists('Twig\Node\DoNode');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Do extends DoNode
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Embed.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Embed.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\EmbedNode;
|
||||
|
||||
class_exists('Twig\Node\EmbedNode');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Embed extends EmbedNode
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\AbstractExpression;
|
||||
|
||||
class_exists('Twig\Node\Expression\AbstractExpression');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression extends AbstractExpression
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Array.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Array.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\ArrayExpression;
|
||||
|
||||
class_exists('Twig\Node\Expression\ArrayExpression');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Array extends ArrayExpression
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/AssignName.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/AssignName.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\AssignNameExpression;
|
||||
|
||||
class_exists('Twig\Node\Expression\AssignNameExpression');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_AssignName extends AssignNameExpression
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\AbstractBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\AbstractBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary extends AbstractBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Add.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Add.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\AddBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\AddBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Add extends AddBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/And.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/And.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\AndBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\AndBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_And extends AndBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseAnd.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseAnd.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\BitwiseAndBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\BitwiseAndBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_BitwiseAnd extends BitwiseAndBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseOr.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseOr.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\BitwiseOrBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\BitwiseOrBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_BitwiseOr extends BitwiseOrBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseXor.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseXor.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\BitwiseXorBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\BitwiseXorBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_BitwiseXor extends BitwiseXorBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Concat.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Concat.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\ConcatBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\ConcatBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Concat extends ConcatBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Div.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Div.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\DivBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\DivBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Div extends DivBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/EndsWith.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/EndsWith.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\EndsWithBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\EndsWithBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_EndsWith extends EndsWithBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Equal.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Equal.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\EqualBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\EqualBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Equal extends EqualBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/FloorDiv.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/FloorDiv.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\FloorDivBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\FloorDivBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_FloorDiv extends FloorDivBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Greater.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Greater.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\GreaterBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\GreaterBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Greater extends GreaterBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/GreaterEqual.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/GreaterEqual.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\GreaterEqualBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\GreaterEqualBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_GreaterEqual extends GreaterEqualBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/In.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/In.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\InBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\InBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_In extends InBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Less.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Less.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\LessBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\LessBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Less extends LessBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/LessEqual.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/LessEqual.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\LessEqualBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\LessEqualBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_LessEqual extends LessEqualBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Matches.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Matches.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\MatchesBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\MatchesBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Matches extends MatchesBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Mod.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Mod.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\ModBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\ModBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Mod extends ModBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Mul.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Mul.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\MulBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\MulBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Mul extends MulBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/NotEqual.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/NotEqual.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\NotEqualBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\NotEqualBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_NotEqual extends NotEqualBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/NotIn.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/NotIn.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\NotInBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\NotInBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_NotIn extends NotInBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Or.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Or.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\OrBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\OrBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Or extends OrBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Power.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Power.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\PowerBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\PowerBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Power extends PowerBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Range.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Range.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\RangeBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\RangeBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Range extends RangeBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/StartsWith.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/StartsWith.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\StartsWithBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\StartsWithBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_StartsWith extends StartsWithBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Sub.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Binary/Sub.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Binary\SubBinary;
|
||||
|
||||
class_exists('Twig\Node\Expression\Binary\SubBinary');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Binary_Sub extends SubBinary
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/BlockReference.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/BlockReference.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\BlockReferenceExpression;
|
||||
|
||||
class_exists('Twig\Node\Expression\BlockReferenceExpression');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_BlockReference extends BlockReferenceExpression
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Call.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Call.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\CallExpression;
|
||||
|
||||
class_exists('Twig\Node\Expression\CallExpression');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Call extends CallExpression
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Conditional.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Conditional.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\ConditionalExpression;
|
||||
|
||||
class_exists('Twig\Node\Expression\ConditionalExpression');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Conditional extends ConditionalExpression
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Constant.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Constant.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\ConstantExpression;
|
||||
|
||||
class_exists('Twig\Node\Expression\ConstantExpression');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Constant extends ConstantExpression
|
||||
{
|
||||
}
|
||||
}
|
||||
35
vendor/twig/twig/lib/Twig/Node/Expression/ExtensionReference.php
vendored
Normal file
35
vendor/twig/twig/lib/Twig/Node/Expression/ExtensionReference.php
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Twig\Compiler;
|
||||
use Twig\Node\Expression\AbstractExpression;
|
||||
|
||||
@trigger_error('The Twig_Node_Expression_ExtensionReference class is deprecated since version 1.23 and will be removed in 2.0.', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Represents an extension call node.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @deprecated since 1.23 and will be removed in 2.0.
|
||||
*/
|
||||
class Twig_Node_Expression_ExtensionReference extends AbstractExpression
|
||||
{
|
||||
public function __construct($name, $lineno, $tag = null)
|
||||
{
|
||||
parent::__construct([], ['name' => $name], $lineno, $tag);
|
||||
}
|
||||
|
||||
public function compile(Compiler $compiler)
|
||||
{
|
||||
$compiler->raw(sprintf("\$this->env->getExtension('%s')", $this->getAttribute('name')));
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Filter.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Filter.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\FilterExpression;
|
||||
|
||||
class_exists('Twig\Node\Expression\FilterExpression');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Filter extends FilterExpression
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Filter/Default.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Filter/Default.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\Filter\DefaultFilter;
|
||||
|
||||
class_exists('Twig\Node\Expression\Filter\DefaultFilter');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Filter_Default extends DefaultFilter
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/Function.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/Function.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\FunctionExpression;
|
||||
|
||||
class_exists('Twig\Node\Expression\FunctionExpression');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_Function extends FunctionExpression
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/GetAttr.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/GetAttr.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\GetAttrExpression;
|
||||
|
||||
class_exists('Twig\Node\Expression\GetAttrExpression');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_GetAttr extends GetAttrExpression
|
||||
{
|
||||
}
|
||||
}
|
||||
11
vendor/twig/twig/lib/Twig/Node/Expression/MethodCall.php
vendored
Normal file
11
vendor/twig/twig/lib/Twig/Node/Expression/MethodCall.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Twig\Node\Expression\MethodCallExpression;
|
||||
|
||||
class_exists('Twig\Node\Expression\MethodCallExpression');
|
||||
|
||||
if (\false) {
|
||||
class Twig_Node_Expression_MethodCall extends MethodCallExpression
|
||||
{
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user