Passed
Push — master ( 517cb3...2c2725 )
by Atanas
02:15
created

TemplatingServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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