From 363423621416637545c4964ef98e16da0c156fcf Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 23 Dec 2019 11:00:38 +0100 Subject: [PATCH] Fixed some comments --- config/autoload/locks.global.php | 1 - config/container.php | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/autoload/locks.global.php b/config/autoload/locks.global.php index 54d6ae66..8462e15b 100644 --- a/config/autoload/locks.global.php +++ b/config/autoload/locks.global.php @@ -8,7 +8,6 @@ use Shlinkio\Shlink\Common\Logger\LoggerAwareDelegatorFactory; use Symfony\Component\Lock; use Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory; -// This class alias tricks the ConfigAbstractFactory to return Lock\Factory instances even with a different service name $localLockFactory = 'Shlinkio\Shlink\LocalLockFactory'; return [ diff --git a/config/container.php b/config/container.php index 7bcc6181..d33149a3 100644 --- a/config/container.php +++ b/config/container.php @@ -18,8 +18,10 @@ if (class_exists(Dotenv::class)) { $dotenv->load(__DIR__ . '/../.env'); } -// Build container +// This class alias tricks the ConfigAbstractFactory to return Lock\Factory instances even with a different service name class_alias(Lock\Factory::class, 'Shlinkio\Shlink\LocalLockFactory'); + +// Build container $config = require __DIR__ . '/config.php'; $container = new ServiceManager($config['dependencies']); $container->setService('config', $config);