-
Notifications
You must be signed in to change notification settings - Fork 0
/
Controller.php
42 lines (36 loc) · 975 Bytes
/
Controller.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
* This file is part of the vSymfo package.
*
* website: www.vision-web.pl
* (c) Rafał Mikołajun <rafal@vision-web.pl>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace vSymfo\Core;
use Symfony\Bundle\FrameworkBundle\Controller\Controller as SymfonyController;
use Symfony\Component\HttpFoundation\Response;
use vSymfo\Core\Traits\DocumentableControllerTrait;
/**
* @author Rafał Mikołajun <rafal@vision-web.pl>
* @package vSymfo Core
*/
class Controller extends SymfonyController
{
use DocumentableControllerTrait;
/**
* {@inheritdoc}
*/
public function render($view, array $parameters = array(), Response $response = null)
{
return parent::render($this->getViewPrefix() . $view, $parameters, $response);
}
/**
* @return string
*/
protected function getViewPrefix()
{
return '';
}
}