Passed
Push — master ( 379f19...9ce0c5 )
by
unknown
06:34
created

TemplatingServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 5 1
A boot() 0 3 1
1
<?php
2
3
namespace CarbonFramework\Templating;
4
5
use CarbonFramework\Framework;
6
use CarbonFramework\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['framework.templating.engine'] = function() {
19
			return new \CarbonFramework\Templating\Php();
20
		};
21
	}
22
23
	/**
24
	 * {@inheritDoc}
25
	 */
26
	public function boot( $container ) {
27
		// nothing to boot
28
	}
29
}
30