[TASK] Prevent Inclusion of MediaWizardProvider* in Base Bootstrap 46/28046/7
authorBenjamin Mack <benni@b13.de>
Fri, 25 Jul 2014 18:32:29 +0000 (20:32 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 13 Aug 2014 19:00:51 +0000 (21:00 +0200)
commit20d4bff436a0623068c1ce9d19282b165fa95a5c
treeee772565d7d032ee71ebbeff43e00ae239e303f8
parentc9a187ad252c0fe6868c670c4dc5cae5801e6d26
[TASK] Prevent Inclusion of MediaWizardProvider* in Base Bootstrap

On every Frontend request, the original media wizard
provider of EXT:cms is loaded, by fetching the
MediaWizardProviderManager and then
an object of MediaWizardProvider is loaded and held
in memory, as this is not needed, but only on pages
where a media is used.

This change moves the instantiation of the providers to
the time when it is needed.

Further modification would be to add the registered
wizards to TYPO3_CONF_VARS[FE][mediaProviders] and
use them directly in the MEDIA object, so the
MediaWizardProviderManager class could be deprecated.

Releases: 6.3
Resolves: #56336
Change-Id: Id466d41fef019449d820b6faec3946ec1c951488
Reviewed-on: http://review.typo3.org/28046
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/frontend/Classes/MediaWizard/MediaWizardProviderManager.php