Youshido\GraphQL\Execution\Processor::__construct PHP Method

__construct() public method

public __construct ( AbstractSchema $schema )
$schema Youshido\GraphQL\Schema\AbstractSchema
    public function __construct(AbstractSchema $schema)
    {
        if (empty($this->executionContext)) {
            $this->executionContext = new ExecutionContext($schema);
            $this->executionContext->setContainer(new Container());
        }
        $this->resolveValidator = new ResolveValidator($this->executionContext);
    }

Usage Example

Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function __construct(ExecutionContextInterface $executionContext)
 {
     $this->executionContext = $executionContext;
     parent::__construct($executionContext->getSchema());
 }