How a Request is Processed in the Symfony Framework
Loading Front Controller It all starts with the execution of the public/index.php file. // public/index.php <?php use App\Kernel; require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; return function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); }; This file is also called Front Controller . It is automatically generated when a Symfony application is installed and is located in recipes of the FrameworkBundle component. The FrameworkBundle component contains a microkernel trait that loads data from /config/* configuration files, such as services, routes, parameters. It contains a basic set of console commands such as clearing the cache, dumping configurations, services, routes. It also contains the AbstractController base class with useful functions for controllers. The public/index.php file executes the /vendor/autoload_runtime.php file. // vendor/autoload_runtime.php <?php //...