Hey guys! I need a possibility to use the same route pattern on 2 different Namespaces and it should use the first matching route with a existing class:
---
controller:
pattern: '/:controller'
config:
namespace: 'MyCustom\Controllers'
controller: 1
corecontroller:
pattern: '/:controller'
config:
namespace: 'Core\Controllers'
controller: 1
...
It should behave like this: Called url: www.mysite.com/login
Router checks if class "MyCustom\Controllers\Login" is existing than proceed with this class else he should use "Core\Controllers\Login"
How can I get something like this to work?
Hope my explanation is clear for you and thanks in advance for your help!