? No Code Attached Yet
avatar Yoji
Yoji
10 Jun 2022

изображение

It would be nice to add the ability to replace and extend standard service providers in the configuration file.

For example, I need to extend the standard UserFactory, but I can't replace it before starting the Application and creating the container.

avatar Yoji Yoji - open - 10 Jun 2022
avatar joomla-cms-bot joomla-cms-bot - change - 10 Jun 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Jun 2022
avatar chmst chmst - change - 10 Jun 2022
Labels Added: ?
avatar chmst chmst - labeled - 10 Jun 2022
avatar laoneo
laoneo - comment - 13 Jun 2022

You should be able to write a system event and then listen to the onBeforeExecute event and then set it on the container.

avatar Yoji
Yoji - comment - 17 Jun 2022

You should be able to write a system event and then listen to the onBeforeExecute event and then set it on the container.

onBeforeExecute is a potential problem.
For example, several plugins are installed on the site that use `onBeforeExecute' and one of them uses the User provider before it was replaced

avatar brianteeman
brianteeman - comment - 20 Jun 2022

Plugins are executed in order

avatar joomdonation joomdonation - change - 13 Nov 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-11-13 10:27:19
Closed_By joomdonation
avatar joomdonation joomdonation - close - 13 Nov 2022

Add a Comment

Login with GitHub to post a comment