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

added checks for public services on compiler passes that use service ids and not references#20112

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:masterfromfabpot:public-services
Oct 1, 2016

Conversation

@fabpot
Copy link
Member

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a


$loader =$container->getDefinition('twig.runtime_loader');
$args =$loader->getArgument(1);
print_r($loader->getArguments());

Choose a reason for hiding this comment

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

This looks like a debug leftover

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

oops

thrownewInvalidArgumentException(sprintf('The service "%s" must not be abstract as it can be lazy-loaded.',$id));
}

$validators[$definition->getClass()] =$id;
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this be done in older branches ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@fabpotfabpot merged commit82fa942 intosymfony:masterOct 1, 2016
fabpot added a commit that referenced this pull requestOct 1, 2016
…se service ids and not references (fabpot)This PR was merged into the 3.2-dev branch.Discussion----------added checks for public services on compiler passes that use service ids and not references| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aCommits-------82fa942 added checks for public services on compiler passes that use service id and not references
@fabpotfabpot deleted the public-services branchOctober 24, 2016 21:39
@fabpotfabpot mentioned this pull requestOct 27, 2016
}

if ($def->isAbstract()) {
thrownewInvalidArgumentException(sprintf('The service "%s" must not be abstract as it can be lazy-loaded.',$id));
Copy link
Member

Choose a reason for hiding this comment

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

The message here is not very accurate. An abstract service is not "get() able". It's not about lazy-loading.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz left review comments

@lyrixxlyrixxlyrixx left review comments

@stofstofstof left review comments

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@fabpot@javiereguiluz@lyrixx@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp