blob: 233132a54c5acb261573d8d4e8bca8b80ef97f3e (
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.0.0
*/
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};
}
}
}
|