diff options
Diffstat (limited to 'main/app/sprinkles/ConfigManager/src/ServicesProvider/ServicesProvider.php')
-rwxr-xr-x | main/app/sprinkles/ConfigManager/src/ServicesProvider/ServicesProvider.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/main/app/sprinkles/ConfigManager/src/ServicesProvider/ServicesProvider.php b/main/app/sprinkles/ConfigManager/src/ServicesProvider/ServicesProvider.php new file mode 100755 index 0000000..93187b1 --- /dev/null +++ b/main/app/sprinkles/ConfigManager/src/ServicesProvider/ServicesProvider.php @@ -0,0 +1,31 @@ +<?php +/** + * Gaston (http://gaston.bbqsoftwares.com) + * + * @link https://github.com/lcharette/GASTON + * @copyright Copyright (c) 2016 Louis Charette + * @license + */ +namespace UserFrosting\Sprinkle\ConfigManager\ServicesProvider; + +use UserFrosting\Sprinkle\ConfigManager\Util\ConfigManager; + +/** + * ConfigManagerServicesProvider class. + * Registers services for the ConfigManager sprinkle, such as configManager, etc. + */ +class ServicesProvider +{ + /** + * Register configManager services. + * + * @param Container $container A DI container implementing ArrayAccess and container-interop. + */ + public function register($container) + { + $container['configManager'] = function ($c) { + $c->db; + return new ConfigManager($c); + }; + } +} |