with higher performance written only in C for PHP. Swoole includes components for different purposes: TCP/UDP Server and Client, Task Worker, Database Connection Pooling, Millisecond Timer, Event, Async IO, Async Http/WebSocket Client, Async Redis Client, Async MySQL Client, and Async DNS Requiring. > www.swoole.com
*/ class SymfonyDriver { private $kernel; private $symfonyRequest; private $symfonyResponse; public function boot(){} public function preHandle(){} public function postHandle(){} public function handle(\swoole_http_request $request, \swoole_http_response $response){} }
in debug toolbar in case it is used (development environment) if ($this->kernel->getContainer()->has('debug.stopwatch')) { $this->kernel->getContainer()->get('debug.stopwatch')->__construct(); } // Resets profiler so the debug toolbar is visible in other requests as well. if ($this->kernel->getContainer()->has('profiler')) { $this->kernel->getContainer()->get('profiler')->enable(); // PropelLogger if ($this->kernel->getContainer()->has('propel.logger')) { $propelLogger = $this->kernel->getContainer()->get('propel.logger'); Utils::hijackProperty($propelLogger, 'queries', []); }
Implements the HttpKernelInterface • Decorated application is the first constructor argument • Handle call must be decorated and delegated to the decorated application