Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Request Lifecycle in Symfony #19608

Open
geekabel opened this issue Feb 26, 2024 · 2 comments
Open

Adding Request Lifecycle in Symfony #19608

geekabel opened this issue Feb 26, 2024 · 2 comments

Comments

@geekabel
Copy link

Adding a Request Lifecycle section in documentation can be crucial for various reasons, Here are several reasons to include a Request Lifecycle section in the documentation:

Understanding Workflow : It helps developers understand the flow and sequence of events that occur when a request is made to the system. This can include the steps taken from the initiation of the request to its completion and response.

Onboarding New Developers: For developers joining and those who contribute, a well-documented request lifecycle serves as an essential onboarding resource. It provides a quick overview of the system's architecture and how different components interact during a request.

Optimization: Developers can use the information about the request lifecycle to optimize their code and improve the overall performance of their applications. Understanding how requests are processed allows for more efficient resource allocation and reduces bottlenecks.

[1] https://symfony.com/doc/current/introduction/http_fundamentals.html
[2] https://symfony.com/doc/current/introduction/from_flat_php_to_symfony.html

I did some research in the documentation and found some primary information coming from these links( [1],[2]) but not as detailed as I would like.
For example, the workings of HttpKernel, the event engine that manages the request lifecycle in Symfony. Details of each event, from kernel.request to kernel.terminate, how it's react when a request arrives.

@javiereguiluz
Copy link
Member

I agree. The doc you are looking for is located at https://symfony.com/doc/current/components/http_kernel.html#the-request-response-lifecycle

Maybe we need to make it easier to discover

@geekabel
Copy link
Author

Thanks @javiereguiluz !
I'm not sure that this information would be in the corresponding component (HttpKernel). Thank you once again. What would you suggest, create a special page that couples a bit of everything by taking elements from other pages or highlight this part of the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants