AssetsIntegrationController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fixAll() 0 6 1
1
<?php
2
namespace Mouf\Html\Utils\WebLibraryManager;
3
4
use Mouf\Mvc\Splash\Controllers\Controller;
5
use Mouf\ClassProxy;
6
7
/**
8
 * This controller is called by the validator in order to fix all components packages if needed.
9
 * 
10
 * @author David Négrier
11
 */
12
class AssetsIntegrationController extends Controller {
13
	
14
	/**
15
	 *
16
	 * @var HtmlBlock
17
	 */
18
	public $content;
19
	
20
	/**
21
	 * The template used by the main page for mouf.
22
	 *
23
	 * @var TemplateInterface
24
	 */
25
	public $template;
26
	
27
	/**
28
	 * @Action
29
	 */
30
	public function fixAll() {
31
		$componentsIntegrationController = new ClassProxy("Mouf\\Html\\Utils\\WebLibraryManager\\Components\\ComponentsIntegrationService");
32
		$componentsIntegrationController->fixAllInAppScope();
33
		
34
		header('Location: '.MOUF_URL);
35
	}
36
}
37