Skip to content

Commit e7b0d91

Browse files
authored
Merge pull request #2097 from xabbuh/frameworkextrabundle-649
fix SensioFrameworkExtraBundle compatibility
2 parents affb4fe + e0d1134 commit e7b0d91

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

EventListener/ViewResponseListener.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,14 @@ public function onKernelView($event)
9696
$context->disableMaxDepth();
9797
}
9898

99-
list($controller, $action) = $configuration->getOwner();
99+
$owner = $configuration->getOwner();
100+
101+
if ([] === $owner || null === $owner) {
102+
$controller = $action = null;
103+
} else {
104+
[$controller, $action] = $owner;
105+
}
106+
100107
$vars = $this->getDefaultVars($configuration, $controller, $action);
101108
} else {
102109
$vars = null;

0 commit comments

Comments
 (0)