Skip to content

Commit

Permalink
Merge pull request #244 from quantcdn/feature/deprecation-constructor
Browse files Browse the repository at this point in the history
Fix deprecation error for constructor.
  • Loading branch information
kepol authored Jan 29, 2025
2 parents ee07f01 + 87208ce commit 7920ac4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controller/QuantNodeViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ class QuantNodeViewController extends NodeViewController {
* @param \Drupal\Core\Session\AccountSwitcherInterface $account_switcher
* The account switcher interface.
*/
public function __construct(EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, ?AccountInterface $current_user = NULL, ?EntityRepositoryInterface $entity_repository = NULL, RequestStack $request_stack, CurrentRouteMatch $route_match, AccountSwitcherInterface $account_switcher) {
public function __construct(EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, AccountInterface $current_user, EntityRepositoryInterface $entity_repository, RequestStack $request_stack, CurrentRouteMatch $route_match, AccountSwitcherInterface $account_switcher) {

parent::__construct($entity_type_manager, $renderer, $current_user, $entity_repository);

$this->accountSwitcher = $account_switcher;
Expand Down

0 comments on commit 7920ac4

Please sign in to comment.