Merge branch 'main' into develop
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
commit
88ffad3841
|
@ -1,4 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.9.2] - 2025-03-12
|
||||||
|
### Fixed
|
||||||
|
- Added mercure service in docker compose file for deployments.
|
||||||
|
|
||||||
## [0.9.1] - 2025-03-12
|
## [0.9.1] - 2025-03-12
|
||||||
### 🐛 Fixed
|
### 🐛 Fixed
|
||||||
- Corrección en la cancelacion de transmisiones p2p.
|
- Corrección en la cancelacion de transmisiones p2p.
|
||||||
|
|
|
@ -10,6 +10,7 @@ use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpKernel\Event\ViewEvent;
|
use Symfony\Component\HttpKernel\Event\ViewEvent;
|
||||||
use Symfony\Component\HttpKernel\KernelEvents;
|
use Symfony\Component\HttpKernel\KernelEvents;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
use Symfony\Component\HttpKernel\KernelInterface;
|
||||||
use Symfony\Component\Mercure\HubInterface;
|
use Symfony\Component\Mercure\HubInterface;
|
||||||
use Symfony\Component\Mercure\Update;
|
use Symfony\Component\Mercure\Update;
|
||||||
|
|
||||||
|
@ -19,7 +20,8 @@ class MercureSubscriber implements EventSubscriberInterface
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
LoggerInterface $logger,
|
LoggerInterface $logger,
|
||||||
private readonly HubInterface $hub
|
private readonly HubInterface $hub,
|
||||||
|
private readonly KernelInterface $kernel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
$this->logger = $logger;
|
$this->logger = $logger;
|
||||||
|
@ -34,6 +36,10 @@ class MercureSubscriber implements EventSubscriberInterface
|
||||||
|
|
||||||
public function onKernelView(ViewEvent $event): void
|
public function onKernelView(ViewEvent $event): void
|
||||||
{
|
{
|
||||||
|
if ('test' === $this->kernel->getEnvironment()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$request = $event->getRequest();
|
$request = $event->getRequest();
|
||||||
$method = $request->getMethod();
|
$method = $request->getMethod();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue