diff --git a/config/autoload/logger.global.php b/config/autoload/logger.global.php index 21bd2b8d..dd4d1d22 100644 --- a/config/autoload/logger.global.php +++ b/config/autoload/logger.global.php @@ -58,8 +58,8 @@ return [ 'dependencies' => [ 'factories' => [ - 'Logger_Shlink' => Common\Factory\LoggerFactory::class, - 'Logger_Access' => Common\Factory\LoggerFactory::class, + 'Logger_Shlink' => Common\Logger\LoggerFactory::class, + 'Logger_Access' => Common\Logger\LoggerFactory::class, ], ], diff --git a/indocker b/indocker index 9b535ec7..789386ac 100755 --- a/indocker +++ b/indocker @@ -1,8 +1,8 @@ #!/usr/bin/env bash # Run docker containers if they are not up yet -if ! [[ $(docker ps | grep shlink_php) ]]; then +if ! [[ $(docker ps | grep shlink_swoole) ]]; then docker-compose up -d fi -docker exec -it shlink_php /bin/sh -c "cd /home/shlink/www && $*" +docker exec -it shlink_swoole /bin/sh -c "$*" diff --git a/module/Common/config/dependencies.config.php b/module/Common/config/dependencies.config.php index fc33f984..88d5d8b6 100644 --- a/module/Common/config/dependencies.config.php +++ b/module/Common/config/dependencies.config.php @@ -3,7 +3,7 @@ declare(strict_types=1); namespace Shlinkio\Shlink\Common; -use Doctrine\Common\Cache\Cache; +use Doctrine\Common\Cache as DoctrineCache; use GeoIp2\Database\Reader; use GuzzleHttp\Client as GuzzleClient; use Monolog\Logger; @@ -20,7 +20,7 @@ return [ 'dependencies' => [ 'factories' => [ GuzzleClient::class => InvokableFactory::class, - Cache::class => Factory\CacheFactory::class, + DoctrineCache\Cache::class => Cache\CacheFactory::class, Filesystem::class => InvokableFactory::class, Reader::class => ConfigAbstractFactory::class, diff --git a/module/Common/src/Factory/CacheFactory.php b/module/Common/src/Cache/CacheFactory.php similarity index 84% rename from module/Common/src/Factory/CacheFactory.php rename to module/Common/src/Cache/CacheFactory.php index 68628af0..907621ea 100644 --- a/module/Common/src/Factory/CacheFactory.php +++ b/module/Common/src/Cache/CacheFactory.php @@ -1,7 +1,7 @@ get(AppOptions::class); $adapter = env('APP_ENV', 'pro') === 'pro' ? new Cache\ApcuCache() : new Cache\ArrayCache(); $adapter->setNamespace((string) $appOptions); diff --git a/module/Common/src/Factory/LoggerFactory.php b/module/Common/src/Logger/LoggerFactory.php similarity index 97% rename from module/Common/src/Factory/LoggerFactory.php rename to module/Common/src/Logger/LoggerFactory.php index 72c396e2..0671bbcc 100644 --- a/module/Common/src/Factory/LoggerFactory.php +++ b/module/Common/src/Logger/LoggerFactory.php @@ -1,7 +1,7 @@