mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
Migrate to constructor promoted properties
This commit is contained in:
parent
4168727f36
commit
1d5674a230
85 changed files with 441 additions and 854 deletions
|
@ -33,25 +33,16 @@ use Wallabag\Repository\TagRepository;
|
|||
|
||||
class EntryController extends AbstractController
|
||||
{
|
||||
private EntityManagerInterface $entityManager;
|
||||
private EventDispatcherInterface $eventDispatcher;
|
||||
private EntryRepository $entryRepository;
|
||||
private Redirect $redirectHelper;
|
||||
private PreparePagerForEntries $preparePagerForEntriesHelper;
|
||||
private FilterBuilderUpdaterInterface $filterBuilderUpdater;
|
||||
private ContentProxy $contentProxy;
|
||||
private Security $security;
|
||||
|
||||
public function __construct(EntityManagerInterface $entityManager, EventDispatcherInterface $eventDispatcher, EntryRepository $entryRepository, Redirect $redirectHelper, PreparePagerForEntries $preparePagerForEntriesHelper, FilterBuilderUpdaterInterface $filterBuilderUpdater, ContentProxy $contentProxy, Security $security)
|
||||
{
|
||||
$this->entityManager = $entityManager;
|
||||
$this->eventDispatcher = $eventDispatcher;
|
||||
$this->entryRepository = $entryRepository;
|
||||
$this->redirectHelper = $redirectHelper;
|
||||
$this->preparePagerForEntriesHelper = $preparePagerForEntriesHelper;
|
||||
$this->filterBuilderUpdater = $filterBuilderUpdater;
|
||||
$this->contentProxy = $contentProxy;
|
||||
$this->security = $security;
|
||||
public function __construct(
|
||||
private EntityManagerInterface $entityManager,
|
||||
private EventDispatcherInterface $eventDispatcher,
|
||||
private EntryRepository $entryRepository,
|
||||
private Redirect $redirectHelper,
|
||||
private PreparePagerForEntries $preparePagerForEntriesHelper,
|
||||
private FilterBuilderUpdaterInterface $filterBuilderUpdater,
|
||||
private ContentProxy $contentProxy,
|
||||
private Security $security,
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue