1 | <?php |
||
14 | class SettingsController |
||
15 | { |
||
16 | /** |
||
17 | * @var Settings |
||
18 | */ |
||
19 | private $settings; |
||
20 | |||
21 | /** |
||
22 | * @Inject("@User.Settings") |
||
23 | * @param Settings $settings |
||
24 | */ |
||
25 | public function __construct(Settings $settings) |
||
29 | |||
30 | /** |
||
31 | * @param Request $request |
||
32 | * @return string[] |
||
33 | * @Route("/settings/", name="settings.all", methods="GET") |
||
34 | */ |
||
35 | public function all(Request $request) |
||
39 | |||
40 | /** |
||
41 | * @param Request $request |
||
42 | * @param string $key |
||
43 | * @param string $value |
||
44 | * @return bool |
||
45 | * @Route("/settings/{key}/{value}/", name="settings.set", methods="POST") |
||
46 | */ |
||
47 | public function set(Request $request, $key, $value) |
||
55 | } |
||
56 |