Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Middleware.php « middleware « src - github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c6314fb46c3a134a38cb388df04172cf87884a8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

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};
        }
    }
}