framework/src/Frontend
Franz Liedke b41d9fb0e7
Inject dependencies when firing events, not before
The event subscriber approach means that dependencies have to be
injected (and thus instantiated, along with all *their* dependencies) at
the time of registering event listeners - even when events are never
fired within a request's lifecycle.

This is unnecessary and causes more classes than necessary to be loaded.

In this case, we can explicitly register event listeners that will
resolve their dependencies when the event is fired, not before.

Refs #1578.
2018-12-13 02:01:50 +01:00
..
Compiler Throw FileNotFoundException when FileSource path does not exist 2018-11-22 23:40:38 +01:00
Content Fix empty meta description tag. Fixes #1677 2018-12-04 09:28:24 +10:30
AddLocaleAssets.php Refactor frontend code to allow for extension of assets 2018-11-22 12:09:50 +10:30
AddTranslations.php Refactor frontend code to allow for extension of assets 2018-11-22 12:09:50 +10:30
Assets.php Refactor frontend code to allow for extension of assets 2018-11-22 12:09:50 +10:30
Controller.php Refactor frontend code to allow for extension of assets 2018-11-22 12:09:50 +10:30
Document.php Refactor frontend code to allow for extension of assets 2018-11-22 12:09:50 +10:30
Frontend.php Refactor frontend code to allow for extension of assets 2018-11-22 12:09:50 +10:30
FrontendServiceProvider.php Include LESS mixins and variables in all frontend compilers 2018-11-22 12:09:50 +10:30
RecompileFrontendAssets.php Inject dependencies when firing events, not before 2018-12-13 02:01:50 +01:00