mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-26 18:21:02 +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
|
@ -15,23 +15,15 @@ use Wallabag\Repository\TagRepository;
|
|||
|
||||
class WallabagExtension extends AbstractExtension implements GlobalsInterface
|
||||
{
|
||||
private $tokenStorage;
|
||||
private $entryRepository;
|
||||
private $annotationRepository;
|
||||
private $tagRepository;
|
||||
private $lifeTime;
|
||||
private $translator;
|
||||
private $projectDir;
|
||||
|
||||
public function __construct(EntryRepository $entryRepository, AnnotationRepository $annotationRepository, TagRepository $tagRepository, TokenStorageInterface $tokenStorage, $lifeTime, TranslatorInterface $translator, string $projectDir)
|
||||
{
|
||||
$this->entryRepository = $entryRepository;
|
||||
$this->annotationRepository = $annotationRepository;
|
||||
$this->tagRepository = $tagRepository;
|
||||
$this->tokenStorage = $tokenStorage;
|
||||
$this->lifeTime = $lifeTime;
|
||||
$this->translator = $translator;
|
||||
$this->projectDir = $projectDir;
|
||||
public function __construct(
|
||||
private EntryRepository $entryRepository,
|
||||
private AnnotationRepository $annotationRepository,
|
||||
private TagRepository $tagRepository,
|
||||
private TokenStorageInterface $tokenStorage,
|
||||
private $lifeTime,
|
||||
private TranslatorInterface $translator,
|
||||
private string $projectDir,
|
||||
) {
|
||||
}
|
||||
|
||||
public function getGlobals(): array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue