Skip to content

Conversation

@dg
Copy link
Member

@dg dg commented Feb 3, 2019

Routers in nette/routing are pure, without any reference to concepts such as presenter / action. So they can't have:

  1. constructors like Route('mask', 'Presenter:action'), only Route('mask', ['presenter' => 'Presenter', 'action' => 'action'])
  2. support for special parameter module

So there are descendants in nette/application, which add this functionality.

The problem is that there are two classes in Nette like Nette\Routing\Route and Nette\Application\Routers\Route (in a similar relationship like Nette\Forms\Form and Nette\Application\UI\Form), which is not good. That's why I take this as a concept, not something ready to merge.

@JanTvrdik
Copy link
Contributor

As long as Nette\Application\Route exist, the tests should remain to ensure BC.

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

Successfully merging this pull request may close these issues.

2 participants