mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 01:03:13 +08:00
Migrated all constructor props to property promotion when possible
This commit is contained in:
@@ -15,13 +15,10 @@ use Shlinkio\Shlink\Rest\Action\AbstractRestAction;
|
||||
|
||||
abstract class AbstractCreateShortUrlAction extends AbstractRestAction
|
||||
{
|
||||
private UrlShortenerInterface $urlShortener;
|
||||
private DataTransformerInterface $transformer;
|
||||
|
||||
public function __construct(UrlShortenerInterface $urlShortener, DataTransformerInterface $transformer)
|
||||
{
|
||||
$this->urlShortener = $urlShortener;
|
||||
$this->transformer = $transformer;
|
||||
public function __construct(
|
||||
private UrlShortenerInterface $urlShortener,
|
||||
private DataTransformerInterface $transformer,
|
||||
) {
|
||||
}
|
||||
|
||||
public function handle(Request $request): Response
|
||||
|
||||
Reference in New Issue
Block a user