Problem/Motivation

If you try to clean the cache you will see this error:

TypeError: Argument 9 passed to Drupal\admin_toolbar_tools\Controller\ToolbarController::__construct() must be an instance of Drupal\Core\Plugin\CachedDiscoveryClearer, instance of Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer given, called in /Users/adriancid/Sites/drupal83-test/modules/contrib/admin_toolbar/admin_toolbar_tools/src/Controller/ToolbarController.php on line 130 in Drupal\admin_toolbar_tools\Controller\ToolbarController->__construct() (line 97 of modules/contrib/admin_toolbar/admin_toolbar_tools/src/Controller/ToolbarController.php).

Proposed resolution

Add the correct namespace in the constructor.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

adriancid created an issue. See original summary.

adriancid’s picture

Assigned: adriancid » Unassigned
Status: Active » Needs review
StatusFileSize
new1.52 KB
romainj’s picture

Works for me. We should always use interfaces when possible.

adriancid’s picture

Hi romainj, you're the module maintainer or is another person? Just to know because I send you a message offering my service to help you maintaining this module :-)

  • adriancid committed bba8bb6 on 8.x-1.x
    Issue #2910934 by adriancid, romainj: Error trying to clean the cache
    
    
adriancid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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