Make sure that some event subscribers are not executed multiple times

This commit is contained in:
Frederic Guillot
2016-01-16 21:06:36 -05:00
parent 6a0895ef76
commit 6a7b8ec60f
10 changed files with 95 additions and 39 deletions

View File

@@ -3,9 +3,8 @@
namespace Kanboard\Subscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Kanboard\Core\Base;
class BootstrapSubscriber extends Base implements EventSubscriberInterface
class BootstrapSubscriber extends BaseSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
@@ -16,6 +15,7 @@ class BootstrapSubscriber extends Base implements EventSubscriberInterface
public function execute()
{
$this->logger->debug('Subscriber executed: '.__CLASS__.'::'.__METHOD__);
$this->config->setupTranslations();
$this->config->setupTimezone();
$this->actionManager->attachEvents();