dependencies:
  invokables:
    #Has to add this line because currently router is strict requirement for Zend\Expressive\Application even if only middleware_pipeline is used
    Zend\Expressive\Router\RouterInterface: Zend\Expressive\Router\ZendRouter
    Zend\Diactoros\Response\EmitterInterface: Zend\Diactoros\Response\SapiStreamEmitter
    {{invokerPackage}}\ErrorMiddleware: {{invokerPackage}}\ErrorMiddleware
  factories:
    Zend\Expressive\Application: Zend\Expressive\Container\ApplicationFactory
    Articus\PathHandler\Middleware: Articus\PathHandler\MiddlewareFactory
    Articus\DataTransfer\Service: Articus\DataTransfer\ServiceFactory

middleware_pipeline:
  api:
    middleware: Articus\PathHandler\Middleware
    path: {{basePathWithoutHost}}
  error:
    middleware: {{invokerPackage}}\ErrorMiddleware
    error: true
    priority: -10000
