Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
224
Merge Requests
224
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
9528aedf
Commit
9528aedf
authored
Aug 29, 2014
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2329653
by znerol: Remove left over abstract class PathListenerBase.
parent
40845867
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
26 deletions
+1
-26
core/lib/Drupal/Core/EventSubscriber/PathListenerBase.php
core/lib/Drupal/Core/EventSubscriber/PathListenerBase.php
+0
-25
core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php
core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php
+1
-1
No files found.
core/lib/Drupal/Core/EventSubscriber/PathListenerBase.php
deleted
100644 → 0
View file @
40845867
<?php
/**
* @file
* Definition of Drupal\Core\EventSubscriber\PathListenerBase.
*/
namespace
Drupal\Core\EventSubscriber
;
use
Symfony\Component\HttpFoundation\Request
;
/**
* Base class for listeners that are manipulating the path.
*/
abstract
class
PathListenerBase
{
public
function
extractPath
(
Request
$request
)
{
$path
=
$request
->
attributes
->
get
(
'_system_path'
);
return
isset
(
$path
)
?
$path
:
trim
(
$request
->
getPathInfo
(),
'/'
);
}
public
function
setPath
(
Request
$request
,
$path
)
{
$request
->
attributes
->
set
(
'_system_path'
,
$path
);
}
}
core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php
View file @
9528aedf
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
/**
/**
* Provides a path subscriber that converts path aliases.
* Provides a path subscriber that converts path aliases.
*/
*/
class
PathSubscriber
extends
PathListenerBase
implements
EventSubscriberInterface
{
class
PathSubscriber
implements
EventSubscriberInterface
{
/**
/**
* The alias manager that caches alias lookups based on the request.
* The alias manager that caches alias lookups based on the request.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment