public function RequestDataCollector::getRoute in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/DataCollector/RequestDataCollector.php \Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::getRoute()
Gets the route name.
The _route request attributes is automatically set by the Router Matcher.
Return value
string The route
File
- vendor/
symfony/ http-kernel/ DataCollector/ RequestDataCollector.php, line 261
Class
- RequestDataCollector
- RequestDataCollector.
Namespace
Symfony\Component\HttpKernel\DataCollectorCode
public function getRoute() {
return isset($this->data['request_attributes']['_route']) ? $this->data['request_attributes']['_route'] : '';
}