Skip to content

Commit 9bb6cca

Browse files
authored
Create Security.php
1 parent 4794c8e commit 9bb6cca

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/Security.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)