Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Respect correct namespace for used
b13/container
class
`b13/container` moved a class with v2.1.0 to another namespace. We instantiated and called that class to re-run code in xclassed class which both extensions needs to xclass and combine both tasks. This change now checks for both possible classes and use the correct ones. Using kind of package or composer information is not reliable enough and more complex than the chosen `class_exist` check. The newer namespace is checked first, in case the container extensions adds a class_alias for the old one. Directly using the new class if existing is the better way. See: b13/container@5d57961#diff-1b5dddc7fdc72ce709fe89a91a8873332a6f6755209043cb81c3b116ee70f738 Resolves: #276
- Loading branch information