Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New interface for Route display in debugbar #113

Open
h4kuna opened this issue Feb 1, 2016 · 1 comment
Open

New interface for Route display in debugbar #113

h4kuna opened this issue Feb 1, 2016 · 1 comment

Comments

@h4kuna
Copy link

h4kuna commented Feb 1, 2016

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

@fprochazka
Copy link
Contributor

@h4kuna interface is a good idea, just a suggestion: IRouteBar -> IRouteMeta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants