Completed
Push — fetcher_factories ( ec83ea...40fc6e )
by David
08:11
created

Controller::getTemplate()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 2
eloc 6
nc 2
nop 0
1
<?php
2
3
namespace Mouf\Mvc\Splash\Controllers;
4
5
use Mouf\Html\HtmlElement\Scopable;
6
7
/**
8
 * Legacy class required by controllers in Splash <8.
9
 */
10
abstract class Controller implements Scopable
11
{
12
    /**
13
     * Inludes the file (useful to load a view inside the Controllers scope).
14
     *
15
     * @param unknown_type $file
16
     */
17
    public function loadFile($file)
18
    {
19
        include $file;
20
    }
21
}
22