blob: b2805b84f964d537bde6107c2a6bb33992f0e814 (
plain)
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
|
<?php
namespace Engelsystem\Controllers;
use Engelsystem\Config\Config;
use Engelsystem\Http\Response;
class CreditsController extends BaseController
{
/** @var Config */
protected $config;
/** @var Response */
protected $response;
/**
* @param Response $response
* @param Config $config
*/
public function __construct(Response $response, Config $config)
{
$this->config = $config;
$this->response = $response;
}
/**
* @return Response
*/
public function index()
{
return $this->response->withView(
'pages/credits.twig',
['credits' => $this->config->get('credits')]
);
}
}
|