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: 43cbd941d0c3b4cff2aef592baa52adadb49cde9 (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.2
 */

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