You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In My Application I just want to register classes and instantiate them only when needed. it will improve performance of app.
Please implement this if it is possible.
Take a look at the section 'Lazily loading a library' in the language tour. Loading a 'deferred' library may not be exactly the same thing as 'registering and instantiating a class', but the deferred library mechanism was created in order to obtain fast startup times in return for some explicit management of the actual time where a library is loaded.
PS: This mechanism was considered important for the web platform, but a similar case wasn't made for the VM; so on the VM you will be able to use the code for deferred libraries, but the loading won't actually be deferred (check out #33118).
In My Application I just want to register classes and instantiate them only when needed. it will improve performance of app.
Please implement this if it is possible.
https://www.php.net/manual/en/language.oop5.autoload.php
Thank you
The text was updated successfully, but these errors were encountered: