An example of attaching a delegator factory to the Mezzio RouteCollectorInterface to automate route registration.
| 1 | <?php |
| 2 | |
| 3 | namespace SomeModule; |
| 4 | |
| 5 | use Laminas\Stdlib\ArrayUtils\MergeRemoveKey; |
| 6 | use Mezzio\Router\RouteCollectorInterface; |
| 7 | |
| 8 | class ConfigProvider |
| 9 | { |
| 10 | public function __invoke(): array |