blob: 9b0b09396f336472b0954b4d4e19486a0753e74a (
plain)
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
|
<?php
/**
* PHPPgAdmin 6.1.3
*/
namespace PHPPgAdmin\Middleware;
class Middleware
{
use \PHPPgAdmin\Traits\HelperTrait;
protected $container;
protected $router;
public function __construct($container)
{
$this->container = $container;
$this->router = $container->get('router');
}
public function __get($property)
{
if (isset($this->container->{$property})) {
return $this->container->{$property};
}
}
}
|