Created event listener that notifies mercure hub for new visits

This commit is contained in:
Alejandro Celaya
2020-04-12 17:05:59 +02:00
parent 31db97228d
commit 72d8edf4ff
7 changed files with 120 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ declare(strict_types=1);
use Laminas\ServiceManager\Proxy\LazyServiceFactory;
use Shlinkio\Shlink\Common\Mercure\LcobucciJwtProvider;
use Symfony\Component\Mercure\Publisher;
use Symfony\Component\Mercure\PublisherInterface;
return [
@@ -20,10 +22,14 @@ return [
LcobucciJwtProvider::class => [
LazyServiceFactory::class,
],
Publisher::class => [
LazyServiceFactory::class,
],
],
'lazy_services' => [
'class_map' => [
LcobucciJwtProvider::class => LcobucciJwtProvider::class,
Publisher::class => PublisherInterface::class,
],
],
],