Commit 9528aedf authored by webchick's avatar webchick

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

parent 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);
}
}
......@@ -18,7 +18,7 @@
/**
* 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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment