Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update hostname_pattern.rst#7663

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
krlove wants to merge1 commit intosymfony:3.2fromkrlove:patch-2
Closed

Update hostname_pattern.rst#7663

krlove wants to merge1 commit intosymfony:3.2fromkrlove:patch-2

Conversation

@krlove
Copy link
Contributor

Symfony\Component\Routing\RouteCollection::addCollection accepts one argument of typeRouteCollection that is why
$collection->addCollection($loader->import("@AcmeHelloBundle/Resources/config/routing.php"), '', array(), array(), array(), 'hello.example.com'); is not correct.

`Symfony\Component\Routing\RouteCollection::addCollection` accepts one argument on type `RouteCollection` that is why`$collection->addCollection($loader->import("@AcmeHelloBundle/Resources/config/routing.php"), '', array(), array(), array(), 'hello.example.com');` is not correct.
Copy link
Contributor

@HeahDudeHeahDude left a comment

Choose a reason for hiding this comment

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

Good catch! Should be merged in 2.7.

$collection = new RouteCollection();
$collection->addCollection($loader->import("@AcmeHelloBundle/Resources/config/routing.php"), '', array(), array(), array(), 'hello.example.com');
$collection->addCollection($importedCollection);
Copy link
Member

Choose a reason for hiding this comment

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

I think we don't need to wrap the imported collection in another collection, but can do the following instead (we can then remove theuse statement too):

$collection =$loader->import("@AcmeHelloBundle/Resources/config/routing.php");$collection->setHost('hello.example.com');return$collection;

HeahDude and krlove reacted with thumbs up emoji
@xabbuh
Copy link
Member

Thank you@krlove.

xabbuh added a commit that referenced this pull requestApr 8, 2017
This PR was submitted for the 3.2 branch but it was merged into the 2.7 branch instead (closes#7663).Discussion----------Update hostname_pattern.rst`Symfony\Component\Routing\RouteCollection::addCollection` accepts one argument of type `RouteCollection` that is why`$collection->addCollection($loader->import("@AcmeHelloBundle/Resources/config/routing.php"), '', array(), array(), array(), 'hello.example.com');` is not correct.Commits-------71dd533 Update hostname_pattern.rst
xabbuh added a commit that referenced this pull requestApr 8, 2017
@xabbuhxabbuh closed thisApr 8, 2017
xabbuh added a commit that referenced this pull requestApr 9, 2017
* 2.7: (48 commits)  docs: choice constraints reference  [#7707] minor tweak  Fixed code block under "Custom Messages"  [#7744] fix XSD locations  Minor XML codes fixes  [#7686] tweak the example code  [#7663] update the PHP example code  Update hostname_pattern.rst  Add missing ";"  Use HTTP instead of http  Fixed indentation in security.rst  Be consistent on service name  Fix missing /  Fix trusted hosts example regular expressions  fixup comment  Testing: Fix typo from#6427  Update apache_router.rst  Update fortrabbit.rst  Fix some YAML codes  Add missing trailing comma & Fix foreach code  ...
xabbuh added a commit that referenced this pull requestApr 13, 2017
* 2.8: (48 commits)  docs: choice constraints reference  [#7707] minor tweak  Fixed code block under "Custom Messages"  [#7744] fix XSD locations  Minor XML codes fixes  [#7686] tweak the example code  [#7663] update the PHP example code  Update hostname_pattern.rst  Add missing ";"  Use HTTP instead of http  Fixed indentation in security.rst  Be consistent on service name  Fix missing /  Fix trusted hosts example regular expressions  fixup comment  Testing: Fix typo from#6427  Update apache_router.rst  Update fortrabbit.rst  Fix some YAML codes  Add missing trailing comma & Fix foreach code  ...
xabbuh added a commit that referenced this pull requestApr 13, 2017
* 3.2: (60 commits)  docs: choice constraints reference  [#7707] minor tweak  Fixed code block under "Custom Messages"  [#7744] fix XSD locations  Minor XML codes fixes  [#7686] tweak the example code  [#7663] update the PHP example code  Update hostname_pattern.rst  Add missing ";"  Use HTTP instead of http  Fixed indentation in security.rst  Be consistent on service name  Fix missing /  typo fix  Fix trusted hosts example regular expressions  add reference built in listener for kernel.response event in >=3.1  fixup comment  Testing: Fix typo from#6427  Update apache_router.rst  Update fortrabbit.rst  ...
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

+1 more reviewer

@HeahDudeHeahDudeHeahDude approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@krlove@xabbuh@HeahDude@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp