src/Bridge/Symfony/HttpKernel/SimpleKernelPool.php
<?php
declare(strict_types=1);
namespace K911\Swoole\Bridge\Symfony\HttpKernel;
use Symfony\Component\HttpKernel\KernelInterface;
final class SimpleKernelPool implements KernelPoolInterface
{
public function __construct(private KernelInterface $kernel)
{
}
public function boot(): void
{
$this->kernel->boot();
}
public function get(): KernelInterface
{
return $this->kernel;
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function return(KernelInterface $kernel): void
{
// no need to be implemented
}
}