application icon indicating copy to clipboard operation
application copied to clipboard

Domain in the routing debug panel

Open elcheco opened this issue 4 years ago • 0 comments

Routing now supports Module and Domain specification:

$router = (new RouteList)
	->withDomain('admin.example.com')
		->withModule('Admin')
			->addRoute(...)
			->addRoute(...)
		->end()
		->withModule('Images')
			->addRoute(...)
		->end()
	->end()
	->withDomain('example.com')
		->withPath('export')
			->addRoute(...)
			...

Unluckily the domain is not visible anywhere and not even in the "routing panel" in the debug bar. RoutinPanel

Maybe it does not need its own column but could be in the "defaults" column only when the domain is set...

elcheco avatar Mar 29 '21 09:03 elcheco