Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
ccae6645
Commit
ccae6645
authored
13 years ago
by
Larry Garfield
Browse files
Options
Downloads
Patches
Plain Diff
Documentation improvements.
parent
da3a3dec
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal/Core/EventSubscriber/RouterListener.php
+17
-3
17 additions, 3 deletions
core/lib/Drupal/Core/EventSubscriber/RouterListener.php
with
17 additions
and
3 deletions
core/lib/Drupal/Core/EventSubscriber/RouterListener.php
+
17
−
3
View file @
ccae6645
<?php
/**
* @file
*
* Definition of Drupal\Core\EventSubscriber\RouterListener;
*/
namespace
Drupal\Core\EventSubscriber
;
use
Symfony\Component\HttpKernel\HttpKernelInterface
;
...
...
@@ -13,9 +19,9 @@
/**
* D
escription of
Router
L
istener
* D
rupal-specific
Router
l
istener
.
*
*
@author crell
*
This is the bridge from the kernel to the UrlMatcher.
*/
class
RouterListener
extends
SymfonyRouterListener
{
...
...
@@ -28,6 +34,15 @@ public function __construct(UrlMatcherInterface $urlMatcher, LoggerInterface $lo
$this
->
logger
=
$logger
;
}
/**
* {@inheritdoc}
*
* This method is nearly identical to the parent, except it passes the
* $request->attributes->get('system_path') variable to the matcher.
* That is where Drupal stores its processed, de-aliased, and sanitized
* internal path. We also pass the full request object to the URL Matcher,
* since we want attributes to be available to the matcher and to controllers.
*/
public
function
onKernelRequest
(
GetResponseEvent
$event
)
{
$request
=
$event
->
getRequest
();
...
...
@@ -43,7 +58,6 @@ public function onKernelRequest(GetResponseEvent $event) {
// add attributes based on the path info (routing)
try
{
//$parameters = $this->urlMatcher->match($request->getPathInfo());
$parameters
=
$this
->
urlMatcher
->
match
(
$request
->
attributes
->
get
(
'system_path'
));
if
(
null
!==
$this
->
logger
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment