FuelServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 4
Bugs 0 Features 1
Metric Value
wmc 1
c 4
b 0
f 1
lcom 0
cbo 1
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 7 1
1
<?php
2
/**
3
 * @package    Fuel\Config
4
 * @version    2.0
5
 * @author     Fuel Development Team
6
 * @license    MIT License
7
 * @copyright  2010 - 2015 Fuel Development Team
8
 * @link       http://fuelphp.com
9
 */
10
11
namespace Fuel\Config\Providers;
12
13
use Fuel\Config\Container;
14
use League\Container\ServiceProvider;
15
16
/**
17
 * Fuel ServiceProvider class for this package
18
 */
19
class FuelServiceProvider extends ServiceProvider
20
{
21
	/**
22
	 * @var array
23
	 */
24
	protected $provides = ['config'];
25
26
	/**
27
	 * {@inheritdoc}
28
	 */
29
	public function register()
30
	{
31
		$this->container->add('config', function ($environment = null, $finder = null, $defaultFormat = 'php')
32
		{
33
			return new Container($environment, $finder, $defaultFormat);
34
		});
35
	}
36
}
37