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

[FrameworkBundle] Remove redundant code#19155

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:masterfromGuilhemN:FRAMEWORKEXTENSION
Jun 24, 2016

Conversation

@GuilhemN
Copy link
Contributor

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

Was part of#17706.
Change the remainingisset($config['foo']) to$this->isConfigEnabled($config['foo']) to allow to use parameters to enable a feature.

@stof
Copy link
Member

The fact that it does not change the Configuration class looks weird to me

@GuilhemN
Copy link
ContributorAuthor

@stofcanBeEnabled is used in theConfiguration so it's ok. In fact it's possible that this was broken, i'll run some checks.

@GuilhemN
Copy link
ContributorAuthor

@stof ok in fact the$this->isConfigEnabled() is inside theregister* functions.
Anyway this still looks inconsistent to me, imo we should move this checks to the main function, wdyt?

@xabbuh
Copy link
Member

At least, I would now remove the second call to theisConfigEnabled() method insideregisterSerializerConfiguration() andregisterPropertyInfoConfiguration().

@GuilhemNGuilhemN changed the title[FrameworkBundle] Fix small inconsistensies[FrameworkBundle] Fix redundant codeJun 23, 2016
@GuilhemNGuilhemN changed the title[FrameworkBundle] Fix redundant code[FrameworkBundle] Remove redundant codeJun 23, 2016
@GuilhemN
Copy link
ContributorAuthor

done@xabbuh

@xabbuh
Copy link
Member

👍 LGTM

@fabpot
Copy link
Member

Thank you @Ener-Getick.

@fabpotfabpot merged commita21af88 intosymfony:masterJun 24, 2016
fabpot added a commit that referenced this pull requestJun 24, 2016
This PR was merged into the 3.2-dev branch.Discussion----------[FrameworkBundle] Remove redundant code| Q             | A| ------------- | ---| Branch?       | "master"| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Was part of#17706.Change the remaining ``isset($config['foo'])`` to ``$this->isConfigEnabled($config['foo'])`` to allow to use parameters to enable a feature.Commits-------a21af88 [FrameworkBundle] Remove redundant code
@GuilhemNGuilhemN deleted the FRAMEWORKEXTENSION branchJune 24, 2016 06:23
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

@GuilhemN@stof@xabbuh@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp