aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/ConfigManager/src/ServicesProvider/ServicesProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/ConfigManager/src/ServicesProvider/ServicesProvider.php')
-rwxr-xr-xmain/app/sprinkles/ConfigManager/src/ServicesProvider/ServicesProvider.php31
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);
+ };
+ }
+}