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

Extracted the DI loading of an array from the YamlFileLoader#11954

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
stof wants to merge1 commit intosymfony:masterfromstof:di_array_loader

Conversation

@stof
Copy link
Member

QA
Bug fix?no
New feature?sort of
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsnone
LicenseMIT
Doc PRn/a

This allows to reuse the logic easily for other loaders needing to extract data from an array.

Note that references and expressions are subject to the same syntax than in YAML files. the goal is to load arrays from a place where you might not be able to instantiate objects.

currently, only the YAMLFileLoader is using it, but the PlainArrayLoader (better named ArrayFileLoader btw) submitted in#11953 could reuse it as well. This would make it benefit from the safeguards added in#11374 as well.

I haven't added dedicated tests yet (but the code is executed by the YamlFileLoader tests). I can add some tests if there is an interest in merging this.

This allows to reuse the logic easily for other loaders needing to extractdata from an array.
@cordoval
Copy link
Contributor

exactly what i was thinking, this is very good@stof 👍

Copy link
Member

Choose a reason for hiding this comment

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

You should check if the keyresource exists

@fabpot
Copy link
Member

I'm 👎 as enabling the YAML conventions in an array loader looks like a non-sense to me.

@stof
Copy link
MemberAuthor

Yeah, this was the point where I was not sure about this. I agree that the string-based convention to reference services and others are a bit hackish. Closing this, and the PlainArrayLoader should not rely on such convention anymore

@stofstof closed thisSep 24, 2014
@stofstof deleted the di_array_loader branchSeptember 24, 2014 07:34
@unkindunkind mentioned this pull requestDec 28, 2016
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.

5 participants

@stof@cordoval@fabpot@GromNaN@jderusse

[8]ページ先頭

©2009-2025 Movatter.jp