From f97a906a9f792253084d7f09fd24c575aef6acb7 Mon Sep 17 00:00:00 2001 From: NiMeDia Date: Thu, 28 Apr 2022 15:35:07 +0200 Subject: [PATCH 1/2] #39 Added Laminas\Cache as module dependency As mentioned in issue #39, Laminas\Cache component is a dependency of this module. --- src/Module.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Module.php b/src/Module.php index 3ae4970..3bf66dc 100644 --- a/src/Module.php +++ b/src/Module.php @@ -9,6 +9,7 @@ use Laminas\EventManager\EventInterface; use Laminas\ModuleManager\Feature\BootstrapListenerInterface; use Laminas\ModuleManager\Feature\ConfigProviderInterface; +use Laminas\ModuleManager\Feature\DependencyIndicatorInterface; use Laminas\Mvc\ApplicationInterface; use Laminas\ServiceManager\ServiceManager; @@ -17,7 +18,8 @@ */ class Module implements BootstrapListenerInterface, - ConfigProviderInterface + ConfigProviderInterface, + DependencyIndicatorInterface { /** * {@inheritDoc} @@ -55,4 +57,13 @@ public function getConfig() { return include __DIR__ . '/../config/module.config.php'; } + + /** + * {@inheritDoc} + */ + public function getModuleDependencies() { + return [ + 'Laminas\Cache', + ]; + } } From 33615beda3cef2a8e9da3871cf9cf84b71ef519f Mon Sep 17 00:00:00 2001 From: NiMeDia Date: Wed, 4 May 2022 20:19:11 +0200 Subject: [PATCH 2/2] Fixed CS Fixed codestyle --- src/Module.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Module.php b/src/Module.php index 3bf66dc..c0a8468 100644 --- a/src/Module.php +++ b/src/Module.php @@ -61,7 +61,8 @@ public function getConfig() /** * {@inheritDoc} */ - public function getModuleDependencies() { + public function getModuleDependencies() + { return [ 'Laminas\Cache', ];