前回のDeep Tour 3では、EventDispatcherだけを解説したので、いよいよHttpKernel::handle()の中を見ていきます。 HttpKernel::handle()メソッド [@/src/vendor/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php] Kernel::handle()から、HttpKernel::handle()が呼ばれます。HttpKernel::handle()メソッドは、基本的にはparent::handle()、すなわちBaseHttpKernelクラスのhandle()メソッドを呼び出すだけなのですが、前後に$currentRequestという変数があり、すでにDIコンテナに登録されているRequestインスタンスを取得してKernelクラスから渡ってきたRequestに
![[Symfony2]Symfony2 Deep Tour 4 | うえちょこ@ぼろぐ](https://cdn-ak-scissors.b.st-hatena.com/image/square/4b9321fb6b8d0f8541de866f229e03fa265be8c0/height=288;version=1;width=512/http%3A%2F%2Flabs.uechoco.com%2Fblog%2Fwp-content%2Fuploads%2Fsf2_http_kernel_sequence_diagram-232x240.png)