FuelServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 1
c 3
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\FileSystem
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\FileSystem\Providers;
12
13
use Fuel\FileSystem\Finder;
14
use League\Container\ServiceProvider;
15
16
/**
17
 * Fuel ServiceProvider class for Filesystem
18
 */
19
class FuelServiceProvider extends ServiceProvider
20
{
21
	/**
22
	 * @var array
23
	 */
24
	public $provides = ['finder'];
25
26
	/**
27
	 * {@inheritdoc}
28
	 */
29
	public function register()
30
	{
31
		$this->container->add('finder', function (array $paths = null, $defaultExtension = null, $root = null)
32
		{
33
			return new Finder($paths, $defaultExtension, $root);
34
		});
35
	}
36
}
37