Skip to content

Separated routing to nette/routing - #208

Merged
dg merged 3 commits into
nette:masterfrom
dg:routing
Feb 13, 2019
Merged

Separated routing to nette/routing#208
dg merged 3 commits into
nette:masterfrom
dg:routing

Conversation

@dg

@dg dg commented Feb 3, 2019

Copy link
Copy Markdown
Member

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
Copy Markdown
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