Fixed config files names

This commit is contained in:
Alejandro Celaya 2016-07-19 17:12:50 +02:00
parent 55f954f50f
commit 170c96b8ef
5 changed files with 4 additions and 2 deletions

View file

@ -40,7 +40,6 @@ return [
Service\UrlShortener::class => AnnotatedFactory::class, Service\UrlShortener::class => AnnotatedFactory::class,
Service\VisitsTracker::class => AnnotatedFactory::class, Service\VisitsTracker::class => AnnotatedFactory::class,
Service\ShortUrlService::class => AnnotatedFactory::class, Service\ShortUrlService::class => AnnotatedFactory::class,
Service\RestTokenService::class => AnnotatedFactory::class,
Cache::class => CacheFactory::class, Cache::class => CacheFactory::class,
// Cli commands // Cli commands

View file

@ -15,9 +15,9 @@ use Zend\Expressive\ConfigManager\ZendConfigProvider;
return call_user_func(function () { return call_user_func(function () {
$configManager = new ConfigManager([ $configManager = new ConfigManager([
new ZendConfigProvider('config/autoload/{{,*.}global,{,*.}local}.php'),
CLI\ConfigProvider::class, CLI\ConfigProvider::class,
Rest\ConfigProvider::class, Rest\ConfigProvider::class,
new ZendConfigProvider('config/autoload/{{,*.}global,{,*.}local}.php')
], 'data/cache/app_config.php'); ], 'data/cache/app_config.php');
return $configManager->getMergedConfig(); return $configManager->getMergedConfig();

View file

@ -2,12 +2,15 @@
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory; use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
use Shlinkio\Shlink\Rest\Action; use Shlinkio\Shlink\Rest\Action;
use Shlinkio\Shlink\Rest\Middleware; use Shlinkio\Shlink\Rest\Middleware;
use Shlinkio\Shlink\Rest\Service;
use Zend\ServiceManager\Factory\InvokableFactory; use Zend\ServiceManager\Factory\InvokableFactory;
return [ return [
'services' => [ 'services' => [
'factories' => [ 'factories' => [
Service\RestTokenService::class => AnnotatedFactory::class,
Action\AuthenticateMiddleware::class => AnnotatedFactory::class, Action\AuthenticateMiddleware::class => AnnotatedFactory::class,
Action\CreateShortcodeMiddleware::class => AnnotatedFactory::class, Action\CreateShortcodeMiddleware::class => AnnotatedFactory::class,
Action\ResolveUrlMiddleware::class => AnnotatedFactory::class, Action\ResolveUrlMiddleware::class => AnnotatedFactory::class,