Base class for listeners that are manipulating the path.
Expanded class hierarchy of PathListenerBase
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);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PathListenerBase:: |
public | function | ||
PathListenerBase:: |
public | function |