for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digia\GraphQL\Schema\Extension;
use Digia\GraphQL\Schema\DefinitionBuilderCreatorInterface;
use League\Container\ServiceProvider\AbstractServiceProvider;
class SchemaExtensionProvider extends AbstractServiceProvider
{
/**
* @var array
*/
protected $provides = [
ExtensionContextCreatorInterface::class,
SchemaExtenderInterface::class,
];
* @inheritdoc
public function register()
$this->container->add(ExtensionContextCreatorInterface::class, ExtensionContextCreator::class, true)
->withArgument(DefinitionBuilderCreatorInterface::class);
$this->container->add(SchemaExtenderInterface::class, SchemaExtender::class)
->withArgument(ExtensionContextCreatorInterface::class);
}