| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class ResolveShortUrlAction extends AbstractRestAction |
||
| 16 | { |
||
| 17 | protected const ROUTE_PATH = '/short-urls/{shortCode}'; |
||
| 18 | protected const ROUTE_ALLOWED_METHODS = [self::METHOD_GET]; |
||
| 19 | |||
| 20 | private ShortUrlResolverInterface $urlResolver; |
||
| 21 | private array $domainConfig; |
||
| 22 | |||
| 23 | 2 | public function __construct(ShortUrlResolverInterface $urlResolver, array $domainConfig) |
|
| 27 | 2 | } |
|
| 28 | |||
| 29 | 2 | public function handle(Request $request): Response |
|
| 37 |