Skip to content

Commit

Permalink
Fixed request bean class bug
Browse files Browse the repository at this point in the history
  • Loading branch information
stelin committed Aug 1, 2019
1 parent 333457e commit 2d9a31f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bean/src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,10 @@ public function getRequest(string $name, string $id)
// Class name
$classNames = $this->classNames[$name] ?? [];
if ($classNames) {
$name = end($classNames);
return $this->getRequest($name, $id);
$clasName = end($classNames);
if ($clasName != $name) {
return $this->getRequest($clasName, $id);
}
}

if (!isset($this->requestDefinitions[$name])) {
Expand Down

0 comments on commit 2d9a31f

Please sign in to comment.