Skip to content

Commit

Permalink
fix service availability issue
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-rolland committed Nov 12, 2024
1 parent 4295f87 commit 078b075
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ private static function getHookModuleFilter()
}

try {
$hookModuleFilter = $serviceContainer->get('prestashop.hook.module.filter');
$hookModuleFilter = $serviceContainer->get(HookModuleFilter::class);
} catch (Exception $e) {
return null;
}
Expand Down
3 changes: 1 addition & 2 deletions config/services/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ services:
public: false
tags: ['container.env_var_processor']

prestashop.hook.module.filter:
class: PrestaShop\PrestaShop\Core\Hook\HookModuleFilter
PrestaShop\PrestaShop\Core\Hook\HookModuleFilter:
arguments:
- !tagged core.hook_module_exec_filter
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
imports:
- { resource: ./circuit_breaker.yml }

services:
PrestaShop\PrestaShop\Core\Hook\HookModuleFilter:
arguments:
- !tagged core.hook_module_exec_filter

0 comments on commit 078b075

Please sign in to comment.