Skip to content

Routing Panel in Debug Bar: Call to undefined method RouteList::getModule() #264

@Thommas2316

Description

@Thommas2316

Version: 3.0.5

Bug Description

Hi,

after updating to 3.0.5, the DebugBar shows an error about RouteList not having method getModule().
After some investigation the problem seems to be with the transition from Application\Routers* classes to Nette\Routing* (mentioned in release notes for 3.0.5), as the RouteList in nette/application has the method, but the one in nette/routing does not.

This line seems to be the culprit:

$this->analyse($subRouter, $module . $router->getModule(), $parentMatches, $level + 1);

The $router in this section is instance of \Nette\Routing\RouteList instead of \Nette\Application\Routers\RouteList (which has the mentioned method available).

Here is the screen from DebugBar :
image

When downgraded to 3.0.4 everything works as expected.

Steps To Reproduce

Upgrade to nette/application:3.0.5

Expected Behavior

Working routing panel

Possible Solution

Porting module functionality to RouteList in nette/routing ?

P.S.: Sorry for not sending the pull request with the fix, as I know the line which is buggy, but I don't know the concept behind the transition so I'm not able to fix it (at the moment) :/

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