8000 The host parameter has to be in defaults, not requirements by MarieMinasyan · Pull Request #3368 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

The host parameter has to be in defaults, not requirements #3368

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

Closed
wants to merge 2 commits into from

Conversation

MarieMinasyan
Copy link
Contributor
Q A
Doc fix? yes
New docs? no
Applies to 2.2+

Also has to be applied to 2.2 & 2.3 branches

@wouterj
Copy link
Member
wouterj commented Dec 20, 2013

-1 We may need to improve the text in the sidebar, that's why I leave this open.

The sidebar is related to the tip above it:

Make sure you also include a default option for the subdomain
placeholder, otherwise you need to include the subdomains value each time
you generate the route.

Here we say that you should set a default domain. Then, we say that you properbly don't want to hardcode it in the routing file, so you can use a parameter for that. Of course, you can also include parameters in the requirements, but that wasn't the idea of this sidebar.

@MarieMinasyan
Copy link
Contributor Author

The parameter in the requirements won't work (tested yesterday), that's why I made this PR

@stof
Copy link
Member
stof commented Dec 24, 2013

@MarieMinasyan the requirement is here to restrict the allowed values for the placeholder. It is not the same than defining a default

@weaverryan
Copy link
Member

@wouterj We already have that nice note above. But what do you think about removing that note and just adding a subdomain key to defaults with a little comment above it?

@wouterj
Copy link
Member
wouterj commented Mar 18, 2014

@weaverryan I think we should move the tip box above the code block and then indeed add the default setting to the example. That should remove the confusion.

@weaverryan
Copy link
Member

I like it - @MarieMinasyan are you able to make these changes? Let us know! And no worries, if you can't - we can open a new PR. But since you brought up the issue, we'd love to give you credit for your contribution ;).

Cheers!

@MarieMinasyan
Copy link
Contributor Author

Hi,
Yes, I'll gladly do the changes :)

@weaverryan
Copy link
Member

Thanks Marie! I do think it's much better now :). Cheers!

weaverryan added a commit that referenced this pull request Mar 27, 2014
…nts (MarieMinasyan)

This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3368).

Discussion
----------

The host parameter has to be in defaults, not requirements

 Q             | A
 ------------- | ---
 Doc fix?      | yes
 New docs?     | no
 Applies to    | 2.2+

Also has to be applied to 2.2 & 2.3 branches

Commits
-------

8a1afae Moved tip block to remove confusion
9c30509 The host parameter has to be in defaults, not requirements
@weaverryan weaverryan closed this Mar 27, 2014
weaverryan added a commit that referenced this pull request Mar 27, 2014
weaverryan added a commit that referenced this pull request Mar 31, 2014
This PR was merged into the 2.3 branch.

Discussion
----------

Minor tweaks related to #3368

Hi guys!

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3

Commits
-------

544a0f5 Minor tweaks related to #3368
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.

4 participants
0