Problem/Motivation

Error on Drupal 9:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "entity.manager". in Drupal\Component\DependencyInjection\Container->get() (line 151 of /var/www/web/core/lib/Drupal/Component/DependencyInjection/Container.php).

Steps to reproduce

Install module on drupal 9

Proposed resolution

Use entity_type.manager instead of entity.manager

Related issue - https://www.drupal.org/project/menu_pager/issues/3121614

Issue fork menu_pager-3199722

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hamrant created an issue. See original summary.

hamrant’s picture

Status: Active » Needs review
Vasyl Manachynskyi’s picture

Work fine for me.

Vasyl Manachynskyi’s picture

Status: Needs review » Reviewed & tested by the community

  • hamrant committed 89ce741 on 8.x-2.x
    Issue #3199722: You have requested a non-existent service "entity....
balajidharma’s picture

Version: 8.x-2.0 » 8.x-2.x-dev
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.