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

[HttpKernel][2.6] Adding support for invokable controllers in the RequestDataCollector#12443

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

Conversation

@jameshalsall
Copy link
Contributor

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsN/A
LicenseMIT
Doc PRN/A

As part of#11193 support for controllers using__invoke() was added.

TheRequestDataCollector did not support controllers that were defined in the routing as...

route_name:    path: /{id}    defaults: { _controller: acme_app.page.controller.page }    requirements:        id: \d+

Where the controller was defined as...

class PageController{publicfunction__invoke()    {//    }}

This PR adds that support. Tests have been updated.

@jameshalsalljameshalsall changed the titleAdding support for invokable controllers in the RequestDataCollector[HttpKernel] Adding support for invokable controllers in the RequestDataCollectorNov 10, 2014
@jameshalsalljameshalsall changed the title[HttpKernel] Adding support for invokable controllers in the RequestDataCollector[HttpKernel][2.6] Adding support for invokable controllers in the RequestDataCollectorNov 10, 2014
@fabpot
Copy link
Member

Thank you@jameshalsall.

fabpot added a commit that referenced this pull requestNov 12, 2014
… in the RequestDataCollector (jameshalsall)This PR was submitted for the master branch but it was merged into the 2.5 branch instead (closes#12443).Discussion----------[HttpKernel][2.6] Adding support for invokable controllers in the RequestDataCollector| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | N/A| License       | MIT| Doc PR        | N/AAs part of#11193 support for controllers using `__invoke()` was added.The `RequestDataCollector` did not support controllers that were defined in the routing as...```phproute_name:    path: /{id}    defaults: { _controller: acme_app.page.controller.page }    requirements:        id: \d+```Where the controller was defined as...```phpclass PageController{    public function __invoke()    {        //    }}```This PR adds that support. Tests have been updated.Commits-------f1d043a [HttpKernel][2.6] Adding support for invokable controllers in the RequestDataCollector
@fabpotfabpot closed thisNov 12, 2014
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@jameshalsall@fabpot

[8]ページ先頭

©2009-2025 Movatter.jp