mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-27 08:18:24 +03:00
Fixed config files names
This commit is contained in:
parent
55f954f50f
commit
170c96b8ef
5 changed files with 4 additions and 2 deletions
|
@ -40,7 +40,6 @@ return [
|
|||
Service\UrlShortener::class => AnnotatedFactory::class,
|
||||
Service\VisitsTracker::class => AnnotatedFactory::class,
|
||||
Service\ShortUrlService::class => AnnotatedFactory::class,
|
||||
Service\RestTokenService::class => AnnotatedFactory::class,
|
||||
Cache::class => CacheFactory::class,
|
||||
|
||||
// Cli commands
|
||||
|
|
|
@ -15,9 +15,9 @@ use Zend\Expressive\ConfigManager\ZendConfigProvider;
|
|||
|
||||
return call_user_func(function () {
|
||||
$configManager = new ConfigManager([
|
||||
new ZendConfigProvider('config/autoload/{{,*.}global,{,*.}local}.php'),
|
||||
CLI\ConfigProvider::class,
|
||||
Rest\ConfigProvider::class,
|
||||
new ZendConfigProvider('config/autoload/{{,*.}global,{,*.}local}.php')
|
||||
], 'data/cache/app_config.php');
|
||||
|
||||
return $configManager->getMergedConfig();
|
||||
|
|
|
@ -2,12 +2,15 @@
|
|||
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
|
||||
use Shlinkio\Shlink\Rest\Action;
|
||||
use Shlinkio\Shlink\Rest\Middleware;
|
||||
use Shlinkio\Shlink\Rest\Service;
|
||||
use Zend\ServiceManager\Factory\InvokableFactory;
|
||||
|
||||
return [
|
||||
|
||||
'services' => [
|
||||
'factories' => [
|
||||
Service\RestTokenService::class => AnnotatedFactory::class,
|
||||
|
||||
Action\AuthenticateMiddleware::class => AnnotatedFactory::class,
|
||||
Action\CreateShortcodeMiddleware::class => AnnotatedFactory::class,
|
||||
Action\ResolveUrlMiddleware::class => AnnotatedFactory::class,
|
Loading…
Reference in a new issue