mirror of
https://github.com/shlinkio/shlink.git
synced 2026-07-29 15:53:46 -05:00
Fixed config files names
This commit is contained in:
@@ -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
|
||||||
|
|||||||
+1
-1
@@ -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();
|
||||||
|
|||||||
@@ -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,
|
||||||
Reference in New Issue
Block a user