Fixed some comments

This commit is contained in:
Alejandro Celaya 2019-12-23 11:00:38 +01:00
parent 6de0cba0b0
commit 3634236214
2 changed files with 3 additions and 2 deletions

View file

@ -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 [

View file

@ -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);