Rename PathListenerAbstract to PathListenerBase to conform to what is likely to soon be the coding standard.
parent
e70d9ac810
commit
bf41cd2e15
|
@ -3,7 +3,7 @@
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
* Definition of Drupal\Core\EventSubscriber\PathListenerAbstract
|
* Definition of Drupal\Core\EventSubscriber\PathListenerBase
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Drupal\Core\EventSubscriber;
|
namespace Drupal\Core\EventSubscriber;
|
||||||
|
@ -13,7 +13,7 @@ use Symfony\Component\HttpFoundation\Request;
|
||||||
/**
|
/**
|
||||||
* Base class for listeners that are manipulating the path.
|
* Base class for listeners that are manipulating the path.
|
||||||
*/
|
*/
|
||||||
abstract class PathListenerAbstract {
|
abstract class PathListenerBase {
|
||||||
|
|
||||||
public function extractPath(Request $request) {
|
public function extractPath(Request $request) {
|
||||||
return $request->attributes->get('system_path') ?: ltrim($request->getPathInfo(), '/');
|
return $request->attributes->get('system_path') ?: ltrim($request->getPathInfo(), '/');
|
|
@ -16,7 +16,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
/**
|
/**
|
||||||
* Access subscriber for controller requests.
|
* Access subscriber for controller requests.
|
||||||
*/
|
*/
|
||||||
class PathSubscriber extends PathListenerAbstract implements EventSubscriberInterface {
|
class PathSubscriber extends PathListenerBase implements EventSubscriberInterface {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolve the system path.
|
* Resolve the system path.
|
||||||
|
|
Loading…
Reference in New Issue