Commit ffbcc23
committed
[BUGFIX] Respect correct namespace for used
`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: #276b13/container class1 parent 64aa19e commit ffbcc23
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | 182 | | |
184 | | - | |
185 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
| |||
0 commit comments