for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ByTIC\EventDispatcher\ListenerProviders;
/**
*
*/
class OneTimeListener implements Listener
{
* @var callable
protected $listener;
public function __construct(callable $listener)
$this->listener = $listener;
}
* @inheritdoc
public function __invoke(object $event): void
call_user_func($this->listener, $event);