Skip to content

New interface for Route display in debugbar #113

@h4kuna

Description

@h4kuna

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions