Skip to content

Commit

Permalink
Merge pull request #1056 from spiral/singleton-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Jan 11, 2024
1 parent 8a9c076 commit d03424a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ListenerProcessorRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

namespace Spiral\Events;

use Spiral\Core\Container\SingletonInterface;
use Spiral\Core\Attribute\Singleton;
use Spiral\Events\Processor\ProcessorInterface;

final class ListenerProcessorRegistry implements ProcessorInterface, SingletonInterface
#[Singleton]
final class ListenerProcessorRegistry implements ProcessorInterface
{
/** @var ProcessorInterface[] */
private array $processors = [];
Expand Down

0 comments on commit d03424a

Please sign in to comment.