for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Micro framework package.
*
* (c) Stanislau Komar <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Micro\Plugin\EventEmitter\Business\Factory;
use Micro\Component\EventEmitter\EventEmitterFactory as BaseEventEmitterFactory;
use Micro\Component\EventEmitter\EventEmitterInterface;
use Micro\Plugin\EventEmitter\Business\Provider\ProviderFactoryInterface;
class EventEmitterFactory extends BaseEventEmitterFactory
{
public function __construct(
private readonly ProviderFactoryInterface $providerFactoryInterface
) {
}
/**
* {@inheritDoc}
public function create(): EventEmitterInterface
$emitter = parent::create();
$emitter->addListenerProvider(
$this->providerFactoryInterface->create()
);
return $emitter;