Skip to content

[FrameworkBundle] switch to parameter for base url #5983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 12, 2012
Merged

[FrameworkBundle] switch to parameter for base url #5983

merged 2 commits into from
Nov 12, 2012

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Nov 11, 2012

This will make it configurable the same way we have it for host and scheme done for 2.1 in d30943c

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: (no new test breakage)
Fixes the following tickets: -
Todo: -
License of the code: MIT
Documentation PR: (none yet. if this is merged, i will happily PR against doc if somebody can point me to the right place)

…rable for tests and cli as done for host and scheme in d30943c
@@ -10,6 +10,13 @@
`MongoDate` instead of `MongoTimestamp`, which also makes it possible to use
TTL collections in MongoDB 2.2+ instead of relying on the `gc()` method.

### Routing
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be in the CHANGELOG instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d30943c added the info to UPGRADE-2.1 so i thought i would do the same thing. there is no 2.2 changelog yet. or do you want me to add this to the 2.1 changelog and it can be part of the next minor version?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should go into the CHANGELOG of the FrameworkBundle in the 2.2 section.

@dbu
Copy link
Contributor Author

dbu commented Nov 11, 2012

doc will go here once its merged: http://symfony.com/doc/current/cookbook/console/generating_urls.html

@dbu
Copy link
Contributor Author

dbu commented Nov 11, 2012

ok, moved to the FrameworkBundle changelog

@Tobion
Copy link
Contributor

Tobion commented Nov 11, 2012

unfortunately is naming is so wrong in many places of the Request class and the routing.
base_url is just an example. It's not an "URL" at all. It's a path only.

@dbu
Copy link
Contributor Author

dbu commented Nov 12, 2012

@Tobion i saw that, but i chose to be consistent with the method name of RequestContext even if it is a wrong name.

fabpot added a commit that referenced this pull request Nov 12, 2012
This PR was merged into the master branch.

Commits
-------

d0e5ef1 [FrameworkBundle] move change note to changelog of FrameworkBundle instead of master UPGRADE-2.2
e77ecc9 [FrameworkBundle] switch to parameter for base url to make it configurable for tests and cli as done for host and scheme in d30943c

Discussion
----------

[FrameworkBundle] switch to parameter for base url

This will make it configurable the same way we have it for host and scheme done for 2.1 in d30943c

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: (no new test breakage)
Fixes the following tickets: -
Todo: -
License of the code: MIT
Documentation PR: (none yet. if this is merged, i will happily PR against doc if somebody can point me to the right place)

---------------------------------------------------------------------------

by dbu at 2012-11-11T18:44:33Z

doc will go here once its merged: http://symfony.com/doc/current/cookbook/console/generating_urls.html

---------------------------------------------------------------------------

by dbu at 2012-11-11T20:12:41Z

ok, moved to the FrameworkBundle changelog

---------------------------------------------------------------------------

by Tobion at 2012-11-11T20:34:28Z

unfortunately is naming is so wrong in many places of the Request class and the routing.
`base_url` is just an example. It's not an "URL" at all. It's a path only.

---------------------------------------------------------------------------

by dbu at 2012-11-12T07:47:55Z

@Tobion i saw that, but i chose to be consistent with the method name of RequestContext even if it is a wrong name.
@fabpot fabpot merged commit d0e5ef1 into symfony:master Nov 12, 2012
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.

3 participants