diff --git a/src/Module/Constant/NamedModule.php b/src/Module/Constant/NamedModule.php new file mode 100644 index 00000000..2c1c3bf0 --- /dev/null +++ b/src/Module/Constant/NamedModule.php @@ -0,0 +1,36 @@ +names = $names; + parent::__construct(); + } + + /** + * {@inheritdoc} + */ + protected function configure() + { + foreach ($this->names as $annotatedWith => $instance) { + $this->bind()->annotatedWith($annotatedWith)->toInstance($instance); + } + } +}