silverstripe-admin
silverstripe-admin copied to clipboard
Remove CMSMenu controller routing rule when the controller is removed.
Description
When CMSMenu::add_controller()
is called a director rule is added, but it won't be removed when the controller is removed. We should implement a way to remove the routing rule when the controller is removed.
See: https://github.com/silverstripe/silverstripe-admin/blob/0f18b3d40972d421f2756b6b90b55283dfc6fea2/code/CMSMenu.php#L73