2016-07-19 18:07:59 +03:00
|
|
|
<?php
|
|
|
|
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
|
|
|
|
use Shlinkio\Shlink\Rest\Action;
|
|
|
|
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 [
|
|
|
|
|
|
|
|
'services' => [
|
|
|
|
'factories' => [
|
2016-07-19 18:12:50 +03:00
|
|
|
Service\RestTokenService::class => AnnotatedFactory::class,
|
|
|
|
|
2016-07-19 18:07:59 +03:00
|
|
|
Action\AuthenticateMiddleware::class => AnnotatedFactory::class,
|
|
|
|
Action\CreateShortcodeMiddleware::class => AnnotatedFactory::class,
|
|
|
|
Action\ResolveUrlMiddleware::class => AnnotatedFactory::class,
|
|
|
|
Action\GetVisitsMiddleware::class => AnnotatedFactory::class,
|
|
|
|
Action\ListShortcodesMiddleware::class => AnnotatedFactory::class,
|
|
|
|
|
|
|
|
Middleware\CrossDomainMiddleware::class => InvokableFactory::class,
|
|
|
|
Middleware\CheckAuthenticationMiddleware::class => AnnotatedFactory::class,
|
2016-07-26 20:09:54 +03:00
|
|
|
Middleware\NotFoundMiddleware::class => AnnotatedFactory::class,
|
2016-07-19 18:07:59 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|