}
if (isset($routeData['className'])) {
- $classData = [
- 'className' => $routeData['className'],
- 'controller' => $routeData['controller'],
- ];
+ $className = $routeData['className'];
} else {
$controller = $routeData['controller'];
);
if (\is_string($classData)) {
$this->redirect($routeData, $application, $classData);
+ } else {
+ $className = $classData['className'];
}
}
}
$this->activeRequest = new Request(
- $classData['className'],
+ $className,
$metaData
);
if (!$this->isACPRequest()) {
// determine if current request matches the landing page
- if (ControllerMap::getInstance()->isLandingPage($classData['className'], $metaData)) {
+ if (ControllerMap::getInstance()->isLandingPage($className, $metaData)) {
$this->activeRequest->setIsLandingPage();
}
}