1 | <?php |
||
18 | class VarnishController extends Controller |
||
|
|||
19 | { |
||
20 | /** |
||
21 | * Generates the varnish ban form. |
||
22 | * |
||
23 | * @Route("/settings/varnish", name="kunstmaancachebundle_varnish_settings_ban") |
||
24 | * @Template("KunstmaanCacheBundle:Varnish:ban.html.twig") |
||
25 | * |
||
26 | * @param Request $request |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | public function indexAction(Request $request) |
||
52 | |||
53 | /** |
||
54 | * Ban route from varnish |
||
55 | * |
||
56 | * @Route("/varnish/ban/{node}", name="kunstmaancachebundle_varnish_ban") |
||
57 | * |
||
58 | * @param Node $node |
||
59 | * |
||
60 | * @return RedirectResponse |
||
61 | */ |
||
62 | public function banAction(Node $node) |
||
75 | |||
76 | /** |
||
77 | * Check permission |
||
78 | * |
||
79 | * @param string $roleToCheck |
||
80 | * |
||
81 | * @throws AccessDeniedException |
||
82 | */ |
||
83 | private function checkPermission($roleToCheck = 'ROLE_SUPER_ADMIN') |
||
89 | } |
||
90 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.