Skip to content
Snippets Groups Projects
Commit 4fbb2e21 authored by rodetrev's avatar rodetrev Committed by Osman Gormus
Browse files

Issue #3308141 by rodetrev, DieterHolvoet, RhiP, kaloyan.damyanov: Lazy should...

Issue #3308141 by rodetrev, DieterHolvoet, RhiP, kaloyan.damyanov: Lazy should typehint ModuleHandler interface rather than a specific implementation
parent f58d8a91
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ namespace Drupal\lazy;
use Drupal\Core\Condition\ConditionManager;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Routing\AdminContext;
use Symfony\Component\HttpFoundation\RequestStack;
......@@ -46,7 +46,7 @@ class Lazy implements LazyInterface {
/**
* The module manager.
*
* @var \Drupal\Core\Extension\ModuleHandler
* @var \Drupal\Core\Extension\ModuleHandlerInterface
*/
protected $moduleHandler;
......@@ -61,7 +61,7 @@ class Lazy implements LazyInterface {
* The condition plugins manager.
* @param \Drupal\Core\Routing\AdminContext $admin_context
* The route admin context service.
* @param \Drupal\Core\Extension\ModuleHandler $module_handler
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module manager.
*/
public function __construct(
......@@ -69,7 +69,7 @@ class Lazy implements LazyInterface {
RequestStack $request_stack,
ConditionManager $condition_manager,
AdminContext $admin_context,
ModuleHandler $module_handler
ModuleHandlerInterface $module_handler
) {
$this->lazySettings = $config_factory->get('lazy.settings')->get();
$this->requestStack = $request_stack->getCurrentRequest();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment