Video Lesson: Bootstrap and route a request in Magento

Bootstrap and route a request in Magento

This is premium content

Only available to enrolled or University students.
Join today to unlock all lessons in this course.

Bootstrap and route a request in Magento

Learn how Magento bootstraps requests in pub/index.php, dispatches routers, and matches URLs to controllers and layouts.

Lesson Content

When a request hits Magento's entry point in pub/index.php, PHP takes control and Magento begins its initialization process. Let's see how Magento bootstraps itself and determines which code handles the incoming request.

The bootstrap process

The pub/index.php file is surprisingly simple. It finds the application directory and creates a bootstrapper:

<?php
/**
 * Public alias for the application entry point
 *
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

use Magento\Framework\App\Bootstrap;

try...

Premium content

Enroll to unlock the full content and all course materials.

👋
Maggie

Log in to start chatting!

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Enroll in this course for AI tutor access.

Comments

Join the discussion!

Comments

Want to comment on this lesson?

Enroll in this course to leave comments.