public __construct ( |
||
$schema |
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);
}
/** * @inheritdoc */ public function __construct(ExecutionContextInterface $executionContext) { $this->executionContext = $executionContext; parent::__construct($executionContext->getSchema()); }