Home  >  Article  >  PHP Framework  >  Brief analysis of the operating process of TP6 framework (with mind map)

Brief analysis of the operating process of TP6 framework (with mind map)

藏色散人
藏色散人forward
2021-10-19 15:09:574166browse

The followingthinkphp frameworkThe tutorial column will introduce to you the impact on performance of introducing so many files in the TP execution method. I hope it will be helpful to friends in need!

tp6 framework running process (life cycle) approximate process:

1. Application entry file
2. Register automatic loading file
3. Instantiation System application basic class think\App
4. Execute the run method of Http

to obtain the current request object instance and save it in the container.
Initialize HTTP application
Listen to the AppInit (application initialization) event
Listen to the HttpRun event
Listen to the RouteLoaded event
Listen to the HttpEnd event

The mind map is as follows:

Brief analysis of the operating process of TP6 framework (with mind map)

Recommended: "The latest 10 thinkphp video tutorials"

The above is the detailed content of Brief analysis of the operating process of TP6 framework (with mind map). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete