blob: 93187b1817be900ecf9946385ec15994740a9fa2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);
};
}
}
|