-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSecurity.php
More file actions
39 lines (32 loc) · 913 Bytes
/
Security.php
File metadata and controls
39 lines (32 loc) · 913 Bytes
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
37
38
39
<?php
/**
* This file is part of Nepttune (https://www.peldax.com)
*
* Copyright (c) 2018 Václav Pelíšek (info@peldax.com)
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the MIT license. For more information, see
* <https://www.peldax.com>.
*/
declare(strict_types = 1);
namespace Nepttune\Component;
final class Security extends \Nette\Application\UI\Control
{
/** @var array */
private $security;
public function __construct(array $security)
{
parent::__construct();
$this->security = $security;
}
protected function beforeRender() : void
{
$this->template->security = $this->security;
}
public function render() : void
{
$this->beforeRender();
$this->template->setFile(__DIR__ . '/Security.latte');
$this->template->render();
}
}