Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x][RFC] CMSPlugin: Lazy subscriber interface and decorator #43658

Open
wants to merge 16 commits into
base: 5.2-dev
Choose a base branch
from
Prev Previous commit
Next Next commit
rename
  • Loading branch information
Fedik committed Jun 15, 2024
commit 609ca8ebde0ae4f07b0dd46d3d88afc3b8782b74
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*
* @since __DEPLOY_VERSION__
*/
final class LazyServiceEventSubscriber implements LazySubscriberInterface, PluginInterface
final class LazyServiceSubscriber implements LazySubscriberInterface, PluginInterface
{
/**
* The service container
Expand Down
4 changes: 2 additions & 2 deletions plugins/system/schedulerunner/services/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

\defined('_JEXEC') or die;

use Joomla\CMS\Event\LazyServiceEventSubscriber;
use Joomla\CMS\Event\LazyServiceSubscriber;
use Joomla\CMS\Extension\PluginInterface;
use Joomla\CMS\Factory;
use Joomla\CMS\Plugin\PluginHelper;
Expand Down Expand Up @@ -45,7 +45,7 @@ function (Container $container) {
)->set(
PluginInterface::class,
function (Container $container) {
return new LazyServiceEventSubscriber($container, ScheduleRunner::class);
return new LazyServiceSubscriber($container, ScheduleRunner::class);
}
);
}
Expand Down
4 changes: 2 additions & 2 deletions plugins/system/tasknotification/services/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

\defined('_JEXEC') or die;

use Joomla\CMS\Event\LazyServiceEventSubscriber;
use Joomla\CMS\Event\LazyServiceSubscriber;
use Joomla\CMS\Extension\PluginInterface;
use Joomla\CMS\Factory;
use Joomla\CMS\Plugin\PluginHelper;
Expand Down Expand Up @@ -49,7 +49,7 @@ function (Container $container) {
)->set(
PluginInterface::class,
function (Container $container) {
return new LazyServiceEventSubscriber($container, TaskNotification::class);
return new LazyServiceSubscriber($container, TaskNotification::class);
}
);
}
Expand Down
4 changes: 2 additions & 2 deletions plugins/system/webauthn/services/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

use Joomla\Application\ApplicationInterface;
use Joomla\Application\SessionAwareWebApplicationInterface;
use Joomla\CMS\Event\LazyServiceEventSubscriber;
use Joomla\CMS\Event\LazyServiceSubscriber;
use Joomla\CMS\Extension\PluginInterface;
use Joomla\CMS\Factory;
use Joomla\CMS\Plugin\PluginHelper;
Expand Down Expand Up @@ -76,7 +76,7 @@ function (Container $container) {
)->set(
PluginInterface::class,
function (Container $container) {
return new LazyServiceEventSubscriber($container, Webauthn::class);
return new LazyServiceSubscriber($container, Webauthn::class);
}
);
}
Expand Down