Home
last modified time | relevance | path

Searched refs:callable (Results 1 – 13 of 13) sorted by relevance

/template/twigstarter/vendor/twig/twig/src/Node/Expression/
H A DCallExpression.php29 if (\is_string($callable) && false === strpos($callable, '::')) {
30 $compiler->raw($callable);
32 list($r, $callable) = $this->reflectCallable($callable);
35 $compiler->raw(sprintf('%s::%s', $callable[0], $callable[1]));
37 … $compiler->raw(sprintf('$this->env->getRuntime(\'%s\')->%s', $callable[0], $callable[1]));
139 if (!$callable) {
297 if (!method_exists($callable[0], $callable[1])) {
301 $r = new \ReflectionMethod($callable[0], $callable[1]);
302 } elseif (\is_object($callable) && !$callable instanceof \Closure) {
305 $callable = [$callable, '__invoke'];
[all …]
H A DFunctionExpression.php34 $callable = $function->getCallable();
36 $callable = 'twig_constant_is_defined';
38 $this->setAttribute('callable', $callable);
/template/twigstarter/vendor/twig/twig/src/
H A DTwigTest.php28 private $callable; variable in Twig\\TwigTest
36 …* @param callable|null $callable A callable implementing the test. If null, you need to overwrite …
39 public function __construct(string $name, $callable = null, array $options = []) argument
46 $this->callable = $callable;
H A DTwigFunction.php29 private $callable; variable in Twig\\TwigFunction
37 …* @param callable|null $callable A callable implementing the function. If null, you need to overwr…
40 public function __construct(string $name, $callable = null, array $options = []) argument
47 $this->callable = $callable;
H A DTwigFilter.php29 private $callable; variable in Twig\\TwigFilter
37 …* @param callable|null $callable A callable implementing the filter. If null, you need to overwrit…
40 public function __construct(string $name, $callable = null, array $options = []) argument
47 $this->callable = $callable;
H A DExtensionSet.php211 public function registerUndefinedFunctionCallback(callable $callable) argument
213 $this->functionCallbacks[] = $callable;
270 public function registerUndefinedFilterCallback(callable $callable) argument
272 $this->filterCallbacks[] = $callable;
H A DEnvironment.php800 public function registerUndefinedFilterCallback(callable $callable) argument
802 $this->extensionSet->registerUndefinedFilterCallback($callable);
874 public function registerUndefinedFunctionCallback(callable $callable) argument
876 $this->extensionSet->registerUndefinedFunctionCallback($callable);
/template/twigstarter/vendor/twig/twig/src/Extension/
H A DEscaperExtension.php97 * @param callable $callable A valid PHP callable
99 public function setEscaper($strategy, callable $callable) argument
101 $this->escapers[$strategy] = $callable;
H A DCoreExtension.php86 * @param callable $callable A valid PHP callable
90 public function setEscaper($strategy, callable $callable) argument
94 $this->escapers[$strategy] = $callable;
/template/twigstarter/vendor/twig/twig/doc/filters/
H A Descape.rst98 used in the ``escape`` call) and the second one must be a valid PHP callable::
103 When called by Twig, the callable receives the Twig environment instance, the
/template/twigstarter/vendor/twig/twig/doc/
H A Drecipes.rst271 valid PHP callable) which should return a function (or a filter).
286 If the callable is not able to return a valid function (or filter), it must
525 .. _callback: https://secure.php.net/manual/en/function.is-callable.php
H A Dadvanced.rst122 Creating a filter consists of associating a name with a PHP callable::
142 filter you will use in templates and the second one is the PHP callable to
158 When called by Twig, the PHP callable receives the left side of the filter
772 any valid PHP callable:
/template/twigstarter/vendor/twig/twig/
H A DCHANGELOG946 * added the ability to use any PHP callable to define filters, functions, and tests
1276 * made macros callable when sandbox mode is enabled