|
0
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
/* |
|
|
4 |
* This file is part of the Symfony package. |
|
|
5 |
* |
|
|
6 |
* (c) Fabien Potencier <fabien@symfony.com> |
|
|
7 |
* |
|
|
8 |
* For the full copyright and license information, please view the LICENSE |
|
|
9 |
* file that was distributed with this source code. |
|
|
10 |
*/ |
|
|
11 |
|
|
|
12 |
namespace Symfony\Component\Templating\Loader; |
|
|
13 |
|
|
|
14 |
use Symfony\Component\Templating\DebuggerInterface; |
|
|
15 |
|
|
|
16 |
/** |
|
|
17 |
* Loader is the base class for all template loader classes. |
|
|
18 |
* |
|
|
19 |
* @author Fabien Potencier <fabien@symfony.com> |
|
|
20 |
*/ |
|
|
21 |
abstract class Loader implements LoaderInterface |
|
|
22 |
{ |
|
|
23 |
protected $debugger; |
|
|
24 |
|
|
|
25 |
/** |
|
|
26 |
* Sets the debugger to use for this loader. |
|
|
27 |
* |
|
|
28 |
* @param DebuggerInterface $debugger A debugger instance |
|
|
29 |
*/ |
|
|
30 |
public function setDebugger(DebuggerInterface $debugger) |
|
|
31 |
{ |
|
|
32 |
$this->debugger = $debugger; |
|
|
33 |
} |
|
|
34 |
} |