vendor/overblog/graphql-bundle/src/ExpressionLanguage/ExpressionFunction/GraphQL/Resolver.php line 19

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL;
  4. use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction;
  5. /**
  6.  * @deprecated since 0.14 and will be removed in 1.0. Use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\Query instead.
  7.  */
  8. final class Resolver extends ExpressionFunction
  9. {
  10.     public function __construct($name 'resolver')
  11.     {
  12.         parent::__construct(
  13.             $name,
  14.             function (string $aliasstring $args '[]') {
  15.                 @trigger_error(
  16.                     "The 'resolver' expression function is deprecated since 0.14 and will be removed in 1.0. Use 'query' instead. For more info visit: https://github.com/overblog/GraphQLBundle/issues/775",
  17.                     E_USER_DEPRECATED
  18.                 );
  19.                 return "$this->gqlServices->query($alias, ...$args)";
  20.             }
  21.         );
  22.     }
  23. }