mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-27 15:26:02 +03:00
36 lines
506 B
PHP
36 lines
506 B
PHP
|
<?php
|
||
|
namespace GraphQL\Examples\Blog;
|
||
|
|
||
|
use GraphQL\Examples\Blog\Data\DataSource;
|
||
|
use GraphQL\Examples\Blog\Data\User;
|
||
|
use GraphQL\Utils;
|
||
|
|
||
|
/**
|
||
|
* Class AppContext
|
||
|
* Instance available in all GraphQL resolvers
|
||
|
*
|
||
|
* @package GraphQL\Examples\Social
|
||
|
*/
|
||
|
class AppContext
|
||
|
{
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
public $rootUrl;
|
||
|
|
||
|
/**
|
||
|
* @var User
|
||
|
*/
|
||
|
public $viewer;
|
||
|
|
||
|
/**
|
||
|
* @var \mixed
|
||
|
*/
|
||
|
public $request;
|
||
|
|
||
|
/**
|
||
|
* @var DataSource
|
||
|
*/
|
||
|
public $dataSource;
|
||
|
}
|