Open h4kuna opened 8 years ago
If I want create new Route and display values in debug bar, i must extend Route class. What do you think about new interface with two methods?
interface IRouteMeta { public funciton getDefaults(); public function getMask(); }
Class route must edit.
class Route implements IRoute, IRouteMeta {}
And I will use like this
class MyRoute implements IRoute, IRouteMeta {}
instance of
class MyRoute extends Route {}
RoutingPanel will change condition to new interface.
Or append both methods to IRoute interface?
Edit Renamed IRouteBar -> IRouteMeta
@h4kuna interface is a good idea, just a suggestion: IRouteBar -> IRouteMeta
IRouteBar
IRouteMeta
If I want create new Route and display values in debug bar, i must extend Route class. What do you think about new interface with two methods?
Class route must edit.
And I will use like this
instance of
RoutingPanel will change condition to new interface.
Or append both methods to IRoute interface?
Edit Renamed IRouteBar -> IRouteMeta