Skip to content
Permalink
Browse files

Enabled MaintenanceModeListenes when drupal is installed (#351)

  • Loading branch information...
harold20 authored and enzolutions committed May 22, 2019
1 parent 780abbe commit 934d14ffcba4cd1d580534ccac409f4a6b27abe2
Showing with 8 additions and 6 deletions.
  1. +8 −6 src/Application.php
@@ -311,12 +311,14 @@ private function registerEvents()
)
);
$dispatcher->addSubscriber(
new MaintenanceModeListener(
$this->container->get('console.translator_manager'),
$this->container->get('state')
)
);
if($this->container->has('state')) {
$dispatcher->addSubscriber(
new MaintenanceModeListener(
$this->container->get('console.translator_manager'),
$this->container->get('state')
)
);
}
$this->setDispatcher($dispatcher);
$this->eventRegistered = true;

0 comments on commit 934d14f

Please sign in to comment.
You can’t perform that action at this time.