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
{{ message }}
This repository was archived by the owner on Nov 27, 2020. It is now read-only.
feature #854 extract autoloading out from bootstrap (Tobion)
This PR was squashed before being merged into the 2.8 branch (closes#854).
Discussion
----------
extract autoloading out from bootstrap
Fixeshttps://github.com/symfony/symfony-standard/issues/788#issuecomment-98993898 and symfony/symfony#14776 (comment).
- by default class aggregation is still used as it is probably beneficial by default for most people (no opcache at all or stats enabled)
- People that do not want to use the aggregation, can simply comment the line. They do not have to rewrite code. E.g. when using opcache with `opcache.validate_timestamps=0` in production there is no point in using the bootstrap.
- No debugging hell anymore as the class aggregation is only done in in no-debug mode
- All environments still use the same code path, i.e. load autoload first. The only difference is the inlusion of the aggregation.
- This way we can also simplify the bootstrap generation in the distribution bundle in the next major version of it.
- several imrprovements like using `require` instead of `require_once` for the autoloader to rely on the return value and `include_once` instead of `require_once` for the bootstrap as the app is also working without it
Commits
-------
747a384 extract autoloading out from bootstrap
0 commit comments