diff --git a/src/Kernel.php b/src/Kernel.php index 245b768..6d8b236 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -5,8 +5,6 @@ namespace App; use Drift\HttpKernel\AsyncKernel as BaseKernel; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; class Kernel extends BaseKernel @@ -21,7 +19,6 @@ class Kernel extends BaseKernel if (is_file(\dirname(__DIR__).'/config/services.yaml')) { $container->import('../config/services.yaml'); $container->import('../config/{services}_'.$this->environment.'.yaml'); - $container->import('../config/react/services.yaml'); } elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) { (require $path)($container->withPath($path), $this); } @@ -38,21 +35,4 @@ class Kernel extends BaseKernel (require $path)($routes->withPath($path), $this); } } - - /** - * {@inheritdoc} - */ - public function handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true) - { - $this->boot(); - $loop = $this->getContainer()->get('reactphp.event_loop'); - $promise = $this->handleAsync($request); - $response = null; - $promise->then(function ($result) use (&$response) { - $response = $result; - }); - $loop->run(); - - return $response; - } }