vendor/overblog/graphql-bundle/src/ExpressionLanguage/ExpressionFunction.php line 15

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Overblog\GraphQLBundle\ExpressionLanguage;
  4. use Overblog\GraphQLBundle\ExpressionLanguage\Exception\EvaluatorIsNotAllowedException;
  5. use Overblog\GraphQLBundle\Generator\TypeGenerator;
  6. use Symfony\Component\ExpressionLanguage\ExpressionFunction as BaseExpressionFunction;
  7. class ExpressionFunction extends BaseExpressionFunction
  8. {
  9. protected string $gqlServices = '$'.TypeGenerator::GRAPHQL_SERVICES;
  10. public function __construct(string $name, callable $compiler, ?callable $evaluator = null)
  11. {
  12. if (null === $evaluator) {
  13. $evaluator = new EvaluatorIsNotAllowedException($name);
  14. }
  15. parent::__construct($name, $compiler, $evaluator);
  16. }
  17. }