| 1 | <?php |
||
| 8 | abstract class AbstractController |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Twig_Environment Twig |
||
| 12 | */ |
||
| 13 | protected $twig; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var SettingRepositoryInterface Settings |
||
| 17 | */ |
||
| 18 | protected $settings; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param Twig_Environment $twig |
||
| 22 | */ |
||
| 23 | public function setTwig(Twig_Environment $twig) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param SettingRepositoryInterface $settings |
||
| 30 | */ |
||
| 31 | public function setSettings(SettingRepositoryInterface $settings) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $name View name |
||
| 38 | * @param array $data Data sent to view |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | protected function view($name, $data = []) |
||
| 46 | } |
||
| 47 |