Issue #2329653 by znerol: Remove left over abstract class PathListenerBase.
parent
408458672c
commit
9528aedfcf
|
@ -1,25 +0,0 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
|
@ -18,7 +18,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
|||
/**
|
||||
* 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.
|
||||
|
|
Loading…
Reference in New Issue