mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-30 00:46:02 +03:00
16 lines
338 B
PHP
16 lines
338 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace GraphQL\Tests;
|
|
|
|
use GraphQL\Executor\Executor;
|
|
use GraphQL\Experimental\Executor\CoroutineExecutor;
|
|
use function getenv;
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
if (getenv('EXECUTOR') === 'coroutine') {
|
|
Executor::setImplementationFactory([CoroutineExecutor::class, 'create']);
|
|
}
|