Completed
Push — v1.3.2 ( 5f6666 )
by Bradley
04:11
created

LogicalServiceProvider::provides()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace Cornford\Logical\Providers;
2
3
use Cornford\Logical\LogicalFactory;
4
use Illuminate\Support\ServiceProvider;
5
6
class LogicalServiceProvider extends ServiceProvider {
7
8
	/**
9
	 * Indicates if loading of the provider is deferred.
10
	 *
11
	 * @var bool
12
	 */
13
	protected $defer = true;
14
15
	/**
16
	 * Bootstrap the application events.
17
	 *
18
	 * @return void
19
	 */
20
	public function boot()
21
	{
22
		$this->package('cornford/logical');
23
	}
24
25
	/**
26
	 * Register the service provider.
27
	 *
28
	 * @return void
29
	 */
30
	public function register()
31
	{
32
		$this->app['logical'] = $this->app->share(function()
33
		{
34
			return (new LogicalFactory)->build();
35
		});
36
	}
37
38
	/**
39
	 * Get the services provided by the provider.
40
	 *
41
	 * @return string[]
42
	 */
43
	public function provides()
44
	{
45
		return ['logical'];
46
	}
47
48
}
49