Refactor admin/*
routing logic from LeftAndMain
into its own abstract class
#1761
Closed
7 tasks done
We often subclass
LeftAndMain
just to get controllers routed in the admin section, and then hide them because they're not actually left and main sections.We should instead have an abstract controller class we can use as the superclass for those which doesn't include all of the complexity of
LeftAndMain
.Related
Notes
AdminController
for now, as it's less likely to be confused withAdminRootController
.Acceptance criteria
AdminRouteController
class is createdAdminRootController
checks for (non-abstract) subclasses of the new class instead of subclasses ofLeftAndMain
to set up routing rulesLeftAndMain
to the new class (see this comment for recommendations about this)LeftAndMain
subclasses the new classLeftAndMain
but only needs the routing and permissions logic is made to subclass the new class instead.LeftAndMain
is made a subclass of the new class instead./admin/
routePRs
kitchen sink run
Compare with CI run in silverstripe/recipe-kitchen-sink
The text was updated successfully, but these errors were encountered: