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

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Middleware/Middleware.php')
-rw-r--r--src/Middleware/Middleware.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Middleware/Middleware.php b/src/Middleware/Middleware.php
new file mode 100644
index 00000000..9e99344a
--- /dev/null
+++ b/src/Middleware/Middleware.php
@@ -0,0 +1,31 @@
+<?php
+
+/**
+ * PHPPgAdmin6
+ */
+
+namespace PHPPgAdmin\Middleware;
+
+use PHPPgAdmin\Traits\HelperTrait;
+
+class Middleware
+{
+ use 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};
+ }
+ }
+}