Linux localhost 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 23.92.16.63 | : 104.23.187.242
Cant Read [ /etc/named.conf ]
8.1.5
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
justhub /
source /
vendor /
symfony /
routing /
[ HOME SHELL ]
Name
Size
Permission
Action
Annotation
[ DIR ]
drwxr-xr-x
DependencyInjection
[ DIR ]
drwxr-xr-x
Exception
[ DIR ]
drwxr-xr-x
Generator
[ DIR ]
drwxr-xr-x
Loader
[ DIR ]
drwxr-xr-x
Matcher
[ DIR ]
drwxr-xr-x
Alias.php
2.52
KB
-rw-r--r--
CHANGELOG.md
11.99
KB
-rw-r--r--
CompiledRoute.php
4.22
KB
-rw-r--r--
LICENSE
1.04
KB
-rw-r--r--
README.md
1.49
KB
-rw-r--r--
RequestContext.php
6.71
KB
-rw-r--r--
RequestContextAwareInterface.p...
546
B
-rw-r--r--
Route.php
12.19
KB
-rw-r--r--
RouteCollection.php
10.67
KB
-rw-r--r--
RouteCollectionBuilder.php
9.45
KB
-rw-r--r--
RouteCompiler.php
14.5
KB
-rw-r--r--
RouteCompilerInterface.php
754
B
-rw-r--r--
Router.php
12.2
KB
-rw-r--r--
RouterInterface.php
1015
B
-rw-r--r--
composer.json
1.61
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : README.md
Routing Component ================= The Routing component maps an HTTP request to a set of configuration variables. Getting Started --------------- ``` $ composer require symfony/routing ``` ```php use App\Controller\BlogController; use Symfony\Component\Routing\Generator\UrlGenerator; use Symfony\Component\Routing\Matcher\UrlMatcher; use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; $route = new Route('/blog/{slug}', ['_controller' => BlogController::class]); $routes = new RouteCollection(); $routes->add('blog_show', $route); $context = new RequestContext(); // Routing can match routes with incoming requests $matcher = new UrlMatcher($routes, $context); $parameters = $matcher->match('/blog/lorem-ipsum'); // $parameters = [ // '_controller' => 'App\Controller\BlogController', // 'slug' => 'lorem-ipsum', // '_route' => 'blog_show' // ] // Routing can also generate URLs for a given route $generator = new UrlGenerator($routes, $context); $url = $generator->generate('blog_show', [ 'slug' => 'my-blog-post', ]); // $url = '/blog/my-blog-post' ``` Resources --------- * [Documentation](https://symfony.com/doc/current/routing.html) * [Contributing](https://symfony.com/doc/current/contributing/index.html) * [Report issues](https://github.com/symfony/symfony/issues) and [send Pull Requests](https://github.com/symfony/symfony/pulls) in the [main Symfony repository](https://github.com/symfony/symfony)
Close