__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace FastRoute;
class Route
{
/** @var string */
public $httpMethod;
/** @var string */
public $regex;
/** @var array */
public $variables;
/** @var mixed */
public $handler;
/**
* Constructs a route (value object).
*
* @param string $httpMethod
* @param mixed $handler
* @param string $regex
* @param array $variables
*/
public function __construct($httpMethod, $handler, $regex, $variables)
{
$this->httpMethod = $httpMethod;
$this->handler = $handler;
$this->regex = $regex;
$this->variables = $variables;
}
/**
* Tests whether this route matches the given string.
*
* @param string $str
*
* @return bool
*/
public function matches($str)
{
$regex = '~^' . $this->regex . '$~';
return (bool) preg_match($regex, $str);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| DataGenerator | Folder | 0777 |
|
|
| Dispatcher | Folder | 0777 |
|
|
| RouteParser | Folder | 0777 |
|
|
| BadRouteException.php | File | 81 B | 0777 |
|
| DataGenerator.php | File | 682 B | 0777 |
|
| Dispatcher.php | File | 594 B | 0777 |
|
| Route.php | File | 921 B | 0777 |
|
| RouteCollector.php | File | 3.77 KB | 0777 |
|
| RouteParser.php | File | 1.01 KB | 0777 |
|
| bootstrap.php | File | 294 B | 0777 |
|
| functions.php | File | 2.49 KB | 0777 |
|