We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4794c8e commit 9bb6ccaCopy full SHA for 9bb6cca
1 file changed
src/Security.php
@@ -0,0 +1,32 @@
1
+<?php
2
+
3
+/**
4
+ * This file is part of Nepttune (https://www.peldax.com)
5
+ *
6
+ * Copyright (c) 2018 Václav Pelíšek (info@peldax.com)
7
8
+ * This software consists of voluntary contributions made by many individuals
9
+ * and is licensed under the MIT license. For more information, see
10
+ * <https://www.peldax.com>.
11
+ */
12
13
+declare(strict_types = 1);
14
15
+namespace Nepttune\Component;
16
17
+final class Security extends BaseComponent
18
+{
19
+ /** @var array */
20
+ private $security;
21
22
+ public function __construct(array $security)
23
+ {
24
+ parent::__construct();
25
26
+ $this->security = $security;
27
+ }
28
+ protected function beforeRender() : void
29
30
+ $this->template->security = $this->security;
31
32
+}
0 commit comments