radiate-framework / framework

A WordPress plugin and theme framework
https://radiate-framework.github.io/
MIT License
4 stars 0 forks source link

Router dispatches before all other providers are booted #158

Closed BenRutlandWeb closed 3 years ago

BenRutlandWeb commented 3 years ago

Describe the bug The Router dispatches before all other providers are booted. Third party packages are unable to register routes unless they are booted before the RouteServiceProvider.

To Reproduce Steps to reproduce the behavior:

  1. Register a route in a service provider that is registered after the RouteServiceProvider.
  2. The route is not registered.
  3. See error

Expected behavior As the router is a major part of the framework, it should dispatch after all other service providers to allow for easy third party integration.