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

ExceptionsServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
A boot() 0 1 1
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