Passed
Push — master ( 5f98a5...88bd0a )
by Atanas
02:12
created

ExceptionsServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace WPEmerge\Exceptions;
4
5
use WPEmerge\ServiceProviders\ServiceProviderInterface;
6
7
/**
8
 * Provide exceptions dependencies.
9
 *
10
 * @codeCoverageIgnore
11
 */
12
class ExceptionsServiceProvider implements ServiceProviderInterface {
13
	/**
14
	 * {@inheritDoc}
15
	 */
16
	public function register( $container ) {
17
		$container[ WPEMERGE_EXCEPTIONS_EXCEPTION_HANDLER_KEY ] = function() {
18
			return new ExceptionHandler();
19
		};
20
	}
21
22
	/**
23
	 * {@inheritDoc}
24
	 */
25
	public function boot( $container ) {
26
		// nothing to boot
27
	}
28
}
29