first commit
This commit is contained in:
41
modules/inpostshipping/vendor/symfony/expression-language/Tests/Fixtures/TestProvider.php
vendored
Normal file
41
modules/inpostshipping/vendor/symfony/expression-language/Tests/Fixtures/TestProvider.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\ExpressionLanguage\Tests\Fixtures;
|
||||
|
||||
use Symfony\Component\ExpressionLanguage\ExpressionFunction;
|
||||
use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface;
|
||||
use Symfony\Component\ExpressionLanguage\ExpressionPhpFunction;
|
||||
|
||||
class TestProvider implements ExpressionFunctionProviderInterface
|
||||
{
|
||||
public function getFunctions()
|
||||
{
|
||||
return [
|
||||
new ExpressionFunction('identity', function ($input) {
|
||||
return $input;
|
||||
}, function (array $values, $input) {
|
||||
return $input;
|
||||
}),
|
||||
|
||||
ExpressionFunction::fromPhp('strtoupper'),
|
||||
|
||||
ExpressionFunction::fromPhp('\strtolower'),
|
||||
|
||||
ExpressionFunction::fromPhp('Symfony\Component\ExpressionLanguage\Tests\Fixtures\fn_namespaced', 'fn_namespaced'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
function fn_namespaced()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
11
modules/inpostshipping/vendor/symfony/expression-language/Tests/Fixtures/index.php
vendored
Normal file
11
modules/inpostshipping/vendor/symfony/expression-language/Tests/Fixtures/index.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
Reference in New Issue
Block a user