Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(api): do not init db connection in event subscriber (#11543) (#11545
Browse files Browse the repository at this point in the history
)

Refs: MON-12296
  • Loading branch information
kduret authored and tuntoja committed Oct 3, 2022
1 parent de4fd06 commit d9b9bec
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/EventSubscriber/UpdateEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ public static function getSubscribedEvents(): array
*/
public function validateCentreonWebVersionOrFail(RequestEvent $event): void
{
$this->debug('Checking if database configuration file exists to know if centreon is already installed');
if (! file_exists(_CENTREON_ETC_ . DIRECTORY_SEPARATOR . 'centreon.conf.php')) {
$this->debug('Centreon database configuration file not found');
return;
}

$this->debug('Checking if route matches updates endpoint');
if (
$event->getRequest()->getMethod() === Request::METHOD_PATCH
Expand Down

0 comments on commit d9b9bec

Please sign in to comment.