mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Replaced more ussages of AnnotatedFactory by ConfigAbstractFactory
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
namespace Shlinkio\Shlink\Common\Middleware;
|
||||
|
||||
use Acelaya\ZsmAnnotatedServices\Annotation\Inject;
|
||||
use Interop\Http\ServerMiddleware\DelegateInterface;
|
||||
use Interop\Http\ServerMiddleware\MiddlewareInterface;
|
||||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
@@ -15,12 +14,6 @@ class LocaleMiddleware implements MiddlewareInterface
|
||||
*/
|
||||
private $translator;
|
||||
|
||||
/**
|
||||
* LocaleMiddleware constructor.
|
||||
* @param Translator $translator
|
||||
*
|
||||
* @Inject({"translator"})
|
||||
*/
|
||||
public function __construct(Translator $translator)
|
||||
{
|
||||
$this->translator = $translator;
|
||||
|
||||
Reference in New Issue
Block a user