|
22 | 22 |
|
23 | 23 | class Main { |
24 | 24 |
|
25 | | - private Config $config; |
26 | | - private JobQueueGroupFactory $jobQueueGroupFactory; |
27 | | - private LanguageNameUtils $languageNameUtils; |
28 | | - private MachineTranslationLanguageFetcher $machineTranslationLanguageFetcher; |
29 | | - private MachineTranslationUtils $machineTranslationUtils; |
30 | | - private MessageLocalizer $messageLocalizer; |
31 | | - private TitleFactory $titleFactory; |
32 | | - private WikiPageFactory $wikiPageFactory; |
| 25 | + private readonly Config $config; |
| 26 | + private readonly MessageLocalizer $messageLocalizer; |
33 | 27 |
|
34 | 28 | public function __construct( |
35 | | - ConfigFactory $configFactory, |
36 | | - JobQueueGroupFactory $jobQueueGroupFactory, |
37 | | - LanguageNameUtils $languageNameUtils, |
38 | | - MachineTranslationLanguageFetcher $machineTranslationLanguageFetcher, |
39 | | - MachineTranslationUtils $machineTranslationUtils, |
40 | | - TitleFactory $titleFactory, |
41 | | - WikiPageFactory $wikiPageFactory |
| 29 | + ConfigFactory $ConfigFactory, |
| 30 | + private readonly JobQueueGroupFactory $jobQueueGroupFactory, |
| 31 | + private readonly LanguageNameUtils $languageNameUtils, |
| 32 | + private readonly MachineTranslationLanguageFetcher $machineTranslationLanguageFetcher, |
| 33 | + private readonly MachineTranslationUtils $machineTranslationUtils, |
| 34 | + private readonly TitleFactory $titleFactory, |
| 35 | + private readonly WikiPageFactory $wikiPageFactory |
42 | 36 | ) { |
43 | | - $this->jobQueueGroupFactory = $jobQueueGroupFactory; |
44 | | - $this->languageNameUtils = $languageNameUtils; |
45 | | - $this->machineTranslationLanguageFetcher = $machineTranslationLanguageFetcher; |
46 | | - $this->machineTranslationUtils = $machineTranslationUtils; |
47 | | - $this->titleFactory = $titleFactory; |
48 | | - $this->wikiPageFactory = $wikiPageFactory; |
49 | | - |
50 | 37 | $this->config = $configFactory->makeConfig( 'MachineTranslation' ); |
51 | 38 | $this->messageLocalizer = RequestContext::getMain(); |
52 | 39 | } |
|
0 commit comments