Issue #2329653 by znerol: Remove left over abstract class PathListenerBase.

8.0.x
webchick 2014-08-29 23:09:36 -07:00
parent 408458672c
commit 9528aedfcf
2 changed files with 1 additions and 26 deletions

View File

@ -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);
}
}

View File

@ -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.