Created event listener that notifies mercure hub for new visits

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

No files matched your search

+6
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,
],
],
],