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

[Config] Introduce BuilderAwareInterface#26308

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
ro0NL wants to merge3 commits intosymfony:masterfromro0NL:config-builder
Closed

[Config] Introduce BuilderAwareInterface#26308

ro0NL wants to merge3 commits intosymfony:masterfromro0NL:config-builder

Conversation

@ro0NL
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#...
LicenseMIT
Doc PRsymfony/symfony-docs#...

SplitParentNodeDefinitionInterface intoBuilderAwareInterface.

Use case is custom node definition (extended from VariableNodeDef) with a corresponding prototyped array node.

To set the actual prototype i need the builder at definition level, provided byParentNodeDefinitionInterface. However i don't implementchildren() +append(), i solely need the builder scope.

To go after#26297

namespace Symfony\Component\Config\Definition\Builder;

/**
* An interface that can be implemented by nodes which built other nodes.

Choose a reason for hiding this comment

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

s/built/build

linaori reacted with thumbs up emoji
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

with minor comment

interface BuilderAwareInterface
{
/**
* Sets a custom children builder.
Copy link
Contributor

Choose a reason for hiding this comment

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

is this really needed :p ?

Copy link
Contributor

Choose a reason for hiding this comment

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

It can be just comment, and not phpdoc IMHO.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

We use phpdoc for documenting methods, not wild comments. So it's either a docblock or nothing at all, personally I would remove it as it does not bring much IMHO.

Copy link
Contributor

@SimperfitSimperfit left a comment

Choose a reason for hiding this comment

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

with a really minor comment ^^.

@nicolas-grekas
Copy link
Member

Thank you@ro0NL.

nicolas-grekas added a commit that referenced this pull requestMar 19, 2018
This PR was squashed before being merged into the 4.1-dev branch (closes#26308).Discussion----------[Config] Introduce BuilderAwareInterface| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->Split `ParentNodeDefinitionInterface` into `BuilderAwareInterface`.Use case is custom node definition  (extended from VariableNodeDef) with a corresponding prototyped array node.To set the actual prototype i need the builder at definition level, provided by `ParentNodeDefinitionInterface`. However i don't implement `children()` + `append()`, i solely need the builder scope.To go after#26297Commits-------1353694 [Config] Introduce BuilderAwareInterface
@ro0NLro0NL deleted the config-builder branchMarch 19, 2018 17:05
@fabpotfabpot mentioned this pull requestMay 7, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@chalasrchalasrchalasr approved these changes

+2 more reviewers

@SimperfitSimperfitSimperfit approved these changes

@20uf20uf20uf approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

6 participants

@ro0NL@nicolas-grekas@Simperfit@20uf@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp