forked from wallabag/wallabag
Make controllers get parameters from constructor
This commit is contained in:
@ -18,7 +18,10 @@ class PocketHtmlController extends HtmlController
|
||||
private readonly Config $craueConfig,
|
||||
private readonly RabbitMqProducer $rabbitMqProducer,
|
||||
private readonly RedisProducer $redisProducer,
|
||||
array $allowMimetypes,
|
||||
string $resourceDir,
|
||||
) {
|
||||
parent::__construct($allowMimetypes, $resourceDir);
|
||||
}
|
||||
|
||||
#[Route(path: '/import/pocket_html', name: 'import_pocket_html', methods: ['GET', 'POST'])]
|
||||
|
||||
Reference in New Issue
Block a user