Octane will automatically handle resetting any first-party framework state between requests. By doing so, that object may have a stale version of the container or request on subsequent requests. In light of this, you should take special care when injecting the application service container or request into any object's constructor. On subsequent requests, the same application instance will be reused. For example, the register and boot methods of your application's service providers will only be executed once when the request worker initially boots. Since Octane boots your application once and keeps it in memory while serving requests, there are a few caveats you should consider while building your application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |