From bf41cd2e15ab4b8af9acc9dc63f7846d9955914e Mon Sep 17 00:00:00 2001 From: Larry Garfield Date: Wed, 9 May 2012 01:18:05 -0500 Subject: [PATCH] Rename PathListenerAbstract to PathListenerBase to conform to what is likely to soon be the coding standard. --- .../{PathListenerAbstract.php => PathListenerBase.php} | 4 ++-- core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename core/lib/Drupal/Core/EventSubscriber/{PathListenerAbstract.php => PathListenerBase.php} (84%) diff --git a/core/lib/Drupal/Core/EventSubscriber/PathListenerAbstract.php b/core/lib/Drupal/Core/EventSubscriber/PathListenerBase.php similarity index 84% rename from core/lib/Drupal/Core/EventSubscriber/PathListenerAbstract.php rename to core/lib/Drupal/Core/EventSubscriber/PathListenerBase.php index 014e2319b332..f8b129fee629 100644 --- a/core/lib/Drupal/Core/EventSubscriber/PathListenerAbstract.php +++ b/core/lib/Drupal/Core/EventSubscriber/PathListenerBase.php @@ -3,7 +3,7 @@ /** * @file * - * Definition of Drupal\Core\EventSubscriber\PathListenerAbstract + * Definition of Drupal\Core\EventSubscriber\PathListenerBase */ namespace Drupal\Core\EventSubscriber; @@ -13,7 +13,7 @@ use Symfony\Component\HttpFoundation\Request; /** * Base class for listeners that are manipulating the path. */ -abstract class PathListenerAbstract { +abstract class PathListenerBase { public function extractPath(Request $request) { return $request->attributes->get('system_path') ?: ltrim($request->getPathInfo(), '/'); diff --git a/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php index 4cc8fc25663f..0713b2fdd525 100644 --- a/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php @@ -16,7 +16,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * Access subscriber for controller requests. */ -class PathSubscriber extends PathListenerAbstract implements EventSubscriberInterface { +class PathSubscriber extends PathListenerBase implements EventSubscriberInterface { /** * Resolve the system path.