| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class ListShortUrlsAction extends AbstractRestAction |
||
| 17 | { |
||
| 18 | use PaginatorUtilsTrait; |
||
| 19 | |||
| 20 | protected const ROUTE_PATH = '/short-urls'; |
||
| 21 | protected const ROUTE_ALLOWED_METHODS = [self::METHOD_GET]; |
||
| 22 | |||
| 23 | private ShortUrlServiceInterface $shortUrlService; |
||
| 24 | private array $domainConfig; |
||
| 25 | |||
| 26 | 12 | public function __construct(ShortUrlServiceInterface $shortUrlService, array $domainConfig) |
|
| 27 | { |
||
| 28 | 12 | $this->shortUrlService = $shortUrlService; |
|
| 29 | 12 | $this->domainConfig = $domainConfig; |
|
| 30 | 12 | } |
|
| 31 | |||
| 32 | 12 | public function handle(Request $request): Response |
|
| 37 | ))]); |
||
| 38 | } |
||
| 40 |