AppContext.php 394 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace GraphQL\Examples\Blog;
  3. use GraphQL\Examples\Blog\Data\User;
  4. /**
  5. * Class AppContext
  6. * Instance available in all GraphQL resolvers as 3rd argument
  7. *
  8. * @package GraphQL\Examples\Blog
  9. */
  10. class AppContext
  11. {
  12. /**
  13. * @var string
  14. */
  15. public $rootUrl;
  16. /**
  17. * @var User
  18. */
  19. public $viewer;
  20. /**
  21. * @var \mixed
  22. */
  23. public $request;
  24. }