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

[ConfigBuilder] Replace all framework config#15269

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
javiereguiluz merged 1 commit intosymfony:5.xfromNyholm:framework-config-builder
Apr 30, 2021

Conversation

@Nyholm
Copy link
Member

@NyholmNyholm commentedApr 21, 2021
edited
Loading

This PR will replace all framework configuration with the new ConfigBuilders.

@Nyholm
Copy link
MemberAuthor

Only the config reference and messeger left =)

@NyholmNyholmforce-pushed theframework-config-builder branch froma8c5161 toa5f4b3bCompareApril 21, 2021 15:16
@NyholmNyholm changed the title[WIP][ConfigBuilder] Replace all framework config[ConfigBuilder] Replace all framework configApr 21, 2021
@NyholmNyholmforce-pushed theframework-config-builder branch from49f1d9b toacdf609CompareApril 21, 2021 19:21
@Nyholm
Copy link
MemberAuthor

I cannot figure out why not all errors show in the diff.. I only see the first 5..

return static function (ContainerBuilder $container, FrameworkConfig $framework) {
$container->setParameter('env(TRUSTED_HOSTS)', '10.0.0.1,10.0.0.2');
$framework->trustedHosts('%env(csv:TRUSTED_HOSTS)%');
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Same here.

@Nyholm
Copy link
MemberAuthor

Hm... About the CI not showing all errors.

It will not showthis error and anything after it. Earlier, it did not showthis error and anything after it.

It make sense if there were a special character that was being printed, but I dont see any. But all::error commands are "reset" after line break. So if one has wrong syntax then it wont effect the next line.

(Btw Iurlencode the line breaks to have a multi line comment.)

Copy link
MemberAuthor

@NyholmNyholm left a comment

Choose a reason for hiding this comment

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

Assumingsymfony/symfony#40903 will be merged. This PR is ready for a final review.

->defaultSerializer('messenger.transport.symfony_serializer')
->symfonySerializer()
->format('json')
->context('foo', 'bar');
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Do we have a better example than this?

derrabus added a commit to symfony/symfony that referenced this pull requestApr 26, 2021
…urator (Nyholm)This PR was merged into the 5.3-dev branch.Discussion----------[Config] Builder: Remove typehints and allow for EnvConfigurator| Q             | A| ------------- | ---| Branch?       | 5.x| Bug fix?      | yes -- maybe| New feature?  | no -- maybe =)| Deprecations? | no| Tickets       || License       | MIT| Doc PR        |When [writing documentation](symfony/symfony-docs#15269 (comment)) we found that we don't really support environment variables in the leaves. Ie, we expect a boolean but you provide `"%env(ENABLE_FOO)%"`This PR will also introduce `ParamConfigurator` to allow parameters to be passed as config.The changes to the generated code:```diff    /**+    * `@param` bool|ParamConfigurator $value     * `@default` false     * `@return` $this     */-   public function enabled(bool $value): self+   public function enabled($value): self    {        $this->enabled = $value;        return $this;    }```Commits-------59b79d3 [Config] Builder: Remove typehints and allow for EnvConfigurator
@Nyholm
Copy link
MemberAuthor

Wohoo. The code PR is merged.

@Nyholm
Copy link
MemberAuthor

Is there something I can do to help this PR to get merged?

@javiereguiluz
Copy link
Member

Sorry it took us some time to merge this. Thanks Tobias!

@javiereguiluzjaviereguiluz merged commit15a5862 intosymfony:5.xApr 30, 2021
@NyholmNyholm deleted the framework-config-builder branchApril 30, 2021 14:01
@Nyholm
Copy link
MemberAuthor

Thank you for merging. I'll fix the rest now

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

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@OskarStarkOskarStarkAwaiting requested review from OskarStark

+1 more reviewer

@jderussejderussejderusse left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.3

Development

Successfully merging this pull request may close these issues.

5 participants

@Nyholm@javiereguiluz@nicolas-grekas@jderusse@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp