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

[3.0] [FrameworkBundle] removed request service occurrences.#12460

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

Merged
fabpot merged 1 commit intosymfony:masterfromhhamon:remove-request-service
Jan 2, 2015

Conversation

hhamon
Copy link
Contributor

QA
Bug fix?no
New feature?no
BC breaks?yes
Deprecations?no
Tests pass?no
Fixed tickets~
LicenseMIT
Doc PR~

@piotrpasich
Copy link

👍

1 similar comment
@mickaelandrieu
Copy link
Contributor

👍

@@ -56,7 +56,7 @@
</service>

<service id="templating.asset.request_aware_package" class="Symfony\Component\Templating\Asset\PackageInterface" factory-service="templating.asset.package_factory" factory-method="getPackage" abstract="true">
<argument type="service" id="request"strict="false" />
<argument type="expression"strict="false">service('request_stack').getCurrentRequest()</argument>
Copy link
Member

Choose a reason for hiding this comment

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

strict=false is not needed anymore, given that there is no scope issue anymore

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

thanks I'm gonna change it.

@hhamonhhamon changed the title[WIP] [FrameworkBundle] removed request service occurrences.[3.0] [FrameworkBundle] removed request service occurrences.Dec 10, 2014
@hhamonhhamonforce-pushed theremove-request-service branch 5 times, most recently fromb120c3c to1b18f88CompareJanuary 2, 2015 09:40
@hhamon
Copy link
ContributorAuthor

Tests are finally green! Ping @symfony/deciders @symfony/mergers.

@@ -44,7 +44,7 @@
</service>

<service id="templating.asset.path_package" class="%templating.asset.path_package.class%" abstract="true">
<argument type="service" id="request" />
<argument type="expression">service('request_stack').getCurrentRequest()</argument>
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 usinggetMasterRequest() is more correct here (same below).

@hhamonhhamonforce-pushed theremove-request-service branch from1b18f88 to74d7cc3CompareJanuary 2, 2015 12:42
@hhamon
Copy link
ContributorAuthor

@fabpot done ;)

<service id="service_container" synthetic="true" />

<service id="kernel" synthetic="true" />

<service id="filesystem" class="%filesystem.class%"></service>
<service id="filesystem" class="%filesystem.class%"/>
Copy link

Choose a reason for hiding this comment

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

Missing space

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Fixed thanks.

@hhamonhhamonforce-pushed theremove-request-service branch from74d7cc3 to5fe3e61CompareJanuary 2, 2015 13:44
@hhamonhhamonforce-pushed theremove-request-service branch from5fe3e61 to2120554CompareJanuary 2, 2015 13:53
@fabpot
Copy link
Member

Thank you@hhamon.

@fabpotfabpot merged commit2120554 intosymfony:masterJan 2, 2015
fabpot added a commit that referenced this pull requestJan 2, 2015
…ences. (hhamon)This PR was merged into the 3.0-dev branch.Discussion----------[3.0] [FrameworkBundle] removed request service occurrences.| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | no| BC breaks?    | yes| Deprecations? | no| Tests pass?   | no| Fixed tickets | ~| License       | MIT| Doc PR        | ~Commits-------2120554 Removed request service occurrences.
@hhamonhhamon deleted the remove-request-service branchJanuary 2, 2015 14:05
<factory service="templating.asset.package_factory" method="getPackage" />
<argument type="service" id="request" strict="false" />
<service id="templating.asset.request_aware_package" class="Symfony\Component\Templating\Asset\PackageInterface" factory-service="templating.asset.package_factory" factory-method="getPackage" abstract="true">
<argument type="expression">service('request_stack').getMasterRequest()</argument>
Copy link
Member

Choose a reason for hiding this comment

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

This will break if the master request is not available (in the CLI for instance). It would be better to inject the RequestStack itself.

@fabpotfabpot mentioned this pull requestNov 16, 2015
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@hhamon@piotrpasich@mickaelandrieu@fabpot@stof@inso

[8]ページ先頭

©2009-2025 Movatter.jp