2020-03-14 22:19:16 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-04-12 14:59:10 +03:00
|
|
|
use Laminas\ServiceManager\Proxy\LazyServiceFactory;
|
|
|
|
use Shlinkio\Shlink\Common\Mercure\LcobucciJwtProvider;
|
2020-04-12 18:05:59 +03:00
|
|
|
use Symfony\Component\Mercure\Publisher;
|
|
|
|
use Symfony\Component\Mercure\PublisherInterface;
|
2020-04-12 14:59:10 +03:00
|
|
|
|
2020-03-14 22:19:16 +03:00
|
|
|
return [
|
|
|
|
|
|
|
|
'mercure' => [
|
|
|
|
'public_hub_url' => null,
|
|
|
|
'internal_hub_url' => null,
|
|
|
|
'jwt_secret' => null,
|
2020-04-12 13:21:05 +03:00
|
|
|
'jwt_issuer' => 'Shlink',
|
2020-03-14 22:19:16 +03:00
|
|
|
],
|
|
|
|
|
2020-04-12 14:59:10 +03:00
|
|
|
'dependencies' => [
|
|
|
|
'delegators' => [
|
|
|
|
LcobucciJwtProvider::class => [
|
|
|
|
LazyServiceFactory::class,
|
|
|
|
],
|
2020-04-12 18:05:59 +03:00
|
|
|
Publisher::class => [
|
|
|
|
LazyServiceFactory::class,
|
|
|
|
],
|
2020-04-12 14:59:10 +03:00
|
|
|
],
|
|
|
|
'lazy_services' => [
|
|
|
|
'class_map' => [
|
|
|
|
LcobucciJwtProvider::class => LcobucciJwtProvider::class,
|
2020-04-12 18:05:59 +03:00
|
|
|
Publisher::class => PublisherInterface::class,
|
2020-04-12 14:59:10 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2020-03-14 22:19:16 +03:00
|
|
|
];
|