BusServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 29
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 9 1
A register() 0 4 1
1
<?php namespace WITR\Providers;
2
3
use Illuminate\Bus\Dispatcher;
4
use Illuminate\Support\ServiceProvider;
5
6
class BusServiceProvider extends ServiceProvider {
7
8
	/**
9
	 * Bootstrap any application services.
10
	 *
11
	 * @param  \Illuminate\Bus\Dispatcher  $dispatcher
12
	 * @return void
13
	 */
14
	public function boot(Dispatcher $dispatcher)
15
	{
16
		$dispatcher->mapUsing(function($command)
17
		{
18
			return Dispatcher::simpleMapping(
19
				$command, 'WITR\Commands', 'WITR\Handlers\Commands'
20
			);
21
		});
22
	}
23
24
	/**
25
	 * Register any application services.
26
	 *
27
	 * @return void
28
	 */
29
	public function register()
30
	{
31
		//
32
	}
33
34
}
35