[#3483996] Replace service proxies with service closures
1 unresolved thread
Closes #3483996
Merge request reports
Activity
- Resolved by Adam Bramley
- Resolved by Adam Bramley
added 1 commit
- Resolved by Adam Bramley
added 1 commit
38 36 /** 39 37 * Constructs a new automated cron runner. 40 38 * 41 * @param \Drupal\Core\CronInterface $cron 39 * @param \Drupal\Core\CronInterface|\Closure $cron 42 40 * The cron service. 43 41 * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory 44 42 * The config factory. 45 43 * @param \Drupal\Core\State\StateInterface $state 46 44 * The state key-value store service. 47 45 */ 48 public function __construct(CronInterface $cron, ConfigFactoryInterface $config_factory, StateInterface $state) { 49 $this->cron = $cron; 46 public function __construct(CronInterface|\Closure $cron, ConfigFactoryInterface $config_factory, StateInterface $state) { 47 if ($cron instanceof CronInterface) { 48 @trigger_error('Passing the $cron argument as an instance of type \Drupal\Core\CronInterface to ' . __METHOD__ . '() is deprecated in drupal:11.1.0 and type \Closure is required in drupal:12.0.0. Pass type \Closure instead. See https://www.drupal.org/node/3484001', E_USER_DEPRECATED); If we're keeping deprecation, version number needs updating.
48 @trigger_error('Passing the $cron argument as an instance of type \Drupal\Core\CronInterface to ' . __METHOD__ . '() is deprecated in drupal:11.1.0 and type \Closure is required in drupal:12.0.0. Pass type \Closure instead. See https://www.drupal.org/node/3484001', E_USER_DEPRECATED); 48 @trigger_error('Passing the $cron argument as an instance of type \Drupal\Core\CronInterface to ' . __METHOD__ . '() is deprecated in drupal:11.2.0 and type \Closure is required in drupal:12.0.0. Pass type \Closure instead. See https://www.drupal.org/node/3484001', E_USER_DEPRECATED); changed this line in version 5 of the diff
- Resolved by Adam Bramley
added 1 commit
added 1 commit
- Resolved by Adam Bramley
- Resolved by Adam Bramley
added 716 commits
-
34ae88df...0011fb9a - 707 commits from branch
project:11.x
- 78db277e - [#3483996] Replace service proxies with service closures
- 5e5d89f7 - Fix phpcs
- 68436175 - [#3483996] Fix failing CronQueueTest::testDelayException
- 061fda54 - Issue #3483996: Add empty update function to rebuild service container
- 670dd0c7 - Apply 1 suggestion(s) to 1 file(s)
- 049756a5 - Issue #3483996: Apply suggested changes, add test
- 579673a1 - Issue #3483996: Fix phpstan errors, add comments
- 20ae1078 - Remove post update hook.
- c05177be - Autowire, update constructor and typing.
Toggle commit list-
34ae88df...0011fb9a - 707 commits from branch
added 200 commits
-
d9999de1...9456d921 - 190 commits from branch
project:11.x
- c348b63a - [#3483996] Replace service proxies with service closures
- 9dab768b - Fix phpcs
- 6d6476be - [#3483996] Fix failing CronQueueTest::testDelayException
- 194c0992 - Issue #3483996: Add empty update function to rebuild service container
- 6a6175ea - Apply 1 suggestion(s) to 1 file(s)
- cf400ac8 - Issue #3483996: Apply suggested changes, add test
- 4a15d060 - Issue #3483996: Fix phpstan errors, add comments
- 5bfc1c5e - Remove post update hook.
- 741d6aa3 - Autowire, update constructor and typing.
- 9694f272 - Update phpstan baseline.
Toggle commit list-
d9999de1...9456d921 - 190 commits from branch
Please register or sign in to reply