for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Railt package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Railt\SDL\Compiler;
use Railt\SDL\Backend\ExecutionContext;
use Railt\TypeSystem\Schema;
* Trait ContextFacadeTrait
trait ContextFacadeTrait
{
use NameResolverFacadeTrait;
use SchemaFacadeTrait {
setSchema as private _setSchema;
}
* @var ExecutionContext
protected ExecutionContext $context;
* @param Schema $schema
* @return $this
public function setSchema(Schema $schema): self
$this->_setSchema($schema);
$this->context->setSchema($schema);
return $this;
* @return void
* @throws \Throwable
private function bootContextFacadeTrait(): void
$this->bootSchemaFacadeTrait();
$this->bootNameResolverFacadeTrait();
$this->context = new ExecutionContext($this->getNameResolver(), $this->getSchema());