Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
8 | class TemplatesController extends Controller |
||
9 | { |
||
10 | /** |
||
11 | * @var ViewFactory |
||
12 | */ |
||
13 | protected $viewFactory; |
||
14 | |||
15 | /** |
||
16 | * @var ResponseFactory |
||
17 | */ |
||
18 | protected $responseFactory; |
||
19 | |||
20 | public function __construct(ViewFactory $viewFactory, ResponseFactory $responseFactory) |
||
21 | { |
||
22 | parent::__construct(); |
||
23 | |||
24 | $this->viewFactory = $viewFactory; |
||
25 | $this->responseFactory = $responseFactory; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return \Illuminate\View\View |
||
30 | */ |
||
31 | public function index() |
||
32 | { |
||
33 | return $this->viewFactory->make('templates.index'); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param string $view |
||
38 | * @return \Illuminate\View\View |
||
39 | */ |
||
40 | public function view($view) |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param string view |
||
|
|||
47 | * @return \Illuminate\Http\JsonResponse |
||
48 | * @throws \Throwable |
||
49 | */ |
||
50 | public function xhr($view) |
||
59 |