2016-07-19 18:07:59 +03:00
|
|
|
<?php
|
|
|
|
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
|
|
|
|
use Shlinkio\Shlink\Rest\Action;
|
2016-08-07 20:13:40 +03:00
|
|
|
use Shlinkio\Shlink\Rest\Authentication\JWTService;
|
2016-07-19 18:07:59 +03:00
|
|
|
use Shlinkio\Shlink\Rest\Middleware;
|
2016-07-19 18:12:50 +03:00
|
|
|
use Shlinkio\Shlink\Rest\Service;
|
2016-07-19 18:07:59 +03:00
|
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
2016-07-31 17:30:05 +03:00
|
|
|
'dependencies' => [
|
2016-07-19 18:07:59 +03:00
|
|
|
'factories' => [
|
2016-08-07 20:13:40 +03:00
|
|
|
JWTService::class => AnnotatedFactory::class,
|
2016-08-06 19:07:48 +03:00
|
|
|
Service\ApiKeyService::class => AnnotatedFactory::class,
|
2016-07-19 18:12:50 +03:00
|
|
|
|
2016-07-27 21:22:50 +03:00
|
|
|
Action\AuthenticateAction::class => AnnotatedFactory::class,
|
|
|
|
Action\CreateShortcodeAction::class => AnnotatedFactory::class,
|
|
|
|
Action\ResolveUrlAction::class => AnnotatedFactory::class,
|
|
|
|
Action\GetVisitsAction::class => AnnotatedFactory::class,
|
|
|
|
Action\ListShortcodesAction::class => AnnotatedFactory::class,
|
2016-08-21 14:52:15 +03:00
|
|
|
Action\EditTagsAction::class => AnnotatedFactory::class,
|
2016-07-19 18:07:59 +03:00
|
|
|
|
2016-08-21 14:52:15 +03:00
|
|
|
Middleware\BodyParserMiddleware::class => AnnotatedFactory::class,
|
2016-07-19 18:07:59 +03:00
|
|
|
Middleware\CrossDomainMiddleware::class => InvokableFactory::class,
|
|
|
|
Middleware\CheckAuthenticationMiddleware::class => AnnotatedFactory::class,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|