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
LazyServiceEventSubscriber
  • Loading branch information
Fedik committed Jun 14, 2024
commit 3a4e51106599af079360d41e1394a61705a11bff
3 changes: 1 addition & 2 deletions libraries/src/Event/LazyEventSubscriberInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ interface LazyEventSubscriberInterface
*
* @return object
*
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
* @throws \Throwable
*
* @since __DEPLOY_VERSION__
*/
Expand Down
7 changes: 3 additions & 4 deletions libraries/src/Event/LazyServiceEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class LazyServiceEventSubscriber implements LazyEventSubscriberInterface,
private $container;

/**
* Listener class name
* Subscriber class name, and id in the container
*
* @var string
* @since __DEPLOY_VERSION__
Expand All @@ -59,7 +59,7 @@ final class LazyServiceEventSubscriber implements LazyEventSubscriberInterface,
* Constructor.
*
* @param \Psr\Container\ContainerInterface $container Container
* @param string $class Listener class name
* @param string $class Subscriber class name, and id in the container
*
* @since __DEPLOY_VERSION__
*/
Expand All @@ -80,8 +80,7 @@ public function __construct(ContainerInterface $container, string $class)
*
* @return object
*
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
* @throws \Throwable
*
* @since __DEPLOY_VERSION__
*/
Expand Down