Use 'Router' in http env and 'HttpRouter' in cli #2400

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

juriansluiman commented Sep 21, 2012

The router should not be duplicated in HTTP, so the application's
router and url view helper router must be the same. However, inside
a cli env the url helper must have the HTTP router in order to
assemble urls.

Jurian Sluiman
Use 'Router' in http env and 'HttpRouter' in cli
The router should not be duplicated in HTTP, so the application's
router and url view helper router must be the same. However, inside
a cli env the url helper must have the HTTP router in order to
assemble urls.

weierophinney added a commit to weierophinney/zendframework that referenced this pull request Sep 21, 2012

[#2400] Added integration tests
- Test integration with MVC services, in particular console vs HTTP
  routers.
- Required being able to override value of Console::isConsole(); added a
  $isConsole protected static member, and an overrideIsConsole($flag)
  public static method; if the flag is a boolean, its value will be
  returned via isConsole().

weierophinney added a commit that referenced this pull request Sep 21, 2012

@ghost ghost assigned weierophinney Sep 21, 2012

weierophinney added a commit to zendframework/zend-console that referenced this pull request May 15, 2015

[zendframework/zendframework#2400] Added integration tests
- Test integration with MVC services, in particular console vs HTTP
  routers.
- Required being able to override value of Console::isConsole(); added a
  $isConsole protected static member, and an overrideIsConsole($flag)
  public static method; if the flag is a boolean, its value will be
  returned via isConsole().

weierophinney added a commit to zendframework/zend-console that referenced this pull request May 15, 2015

weierophinney added a commit to zendframework/zend-console that referenced this pull request May 15, 2015

weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015

[zendframework/zendframework#2400] Added integration tests
- Test integration with MVC services, in particular console vs HTTP
  routers.
- Required being able to override value of Console::isConsole(); added a
  $isConsole protected static member, and an overrideIsConsole($flag)
  public static method; if the flag is a boolean, its value will be
  returned via isConsole().

weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015

weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment