-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PropertyInfo] Add possibility to extract private and protected properties in reflection extractor #30706
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
fabpot
merged 1 commit into
symfony:master
from
joelwurtz:feature/private-reflection-extractor
Mar 27, 2019
Merged
[PropertyInfo] Add possibility to extract private and protected properties in reflection extractor #30706
fabpot
merged 1 commit into
symfony:master
from
joelwurtz:feature/private-reflection-extractor
Mar 27, 2019
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Mar 26, 2019
fabpot
approved these changes
Mar 26, 2019
xabbuh
reviewed
Mar 26, 2019
src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php
Outdated
Show resolved
Hide resolved
…rties in reflection extractor
8cafd2e
to
05e487f
Compare
Thank you @joelwurtz. |
fabpot
added a commit
that referenced
this pull request
Mar 27, 2019
…protected properties in reflection extractor (joelwurtz) This PR was squashed before being merged into the 4.3-dev branch (closes #30706). Discussion ---------- [PropertyInfo] Add possibility to extract private and protected properties in reflection extractor | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30248 | License | MIT | Doc PR | TODO This PR add the possibility to extract private and protected properties from a class by passing a new argument to the `ReflectionExtractor` This new argument consist of flag that filters properties, so someone will also be able to use the `ReflectionExtractor` only for private property ```php new ReflectionExtractor(null, null, null, true, ReflectionExtractor::ALLOW_PRIVATE | ReflectionExtractor::ALLOW_PROTECTED) ``` Flags method was prefered over a list of bool to avoid too many parameters and also be close to the reflection API of PHP Commits ------- 05e487f [PropertyInfo] Add possibility to extract private and protected properties in reflection extractor
nicolas-grekas
added a commit
that referenced
this pull request
Mar 28, 2019
…cted (joelwurtz) This PR was merged into the 4.3-dev branch. Discussion ---------- [PropertyInfo] Add missing changelog for private / protected | Q | A | ------------- | --- | Branch? | master | Bug fix? | somehow | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Add missing changelog for #30706 Commits ------- 8c5663d Add missing changelog for private / protected
javiereguiluz
added a commit
to symfony/symfony-docs
that referenced
this pull request
Apr 1, 2019
This PR was squashed before being merged into the master branch (closes #11247). Discussion ---------- Documented the new Unique constraint Documents symfony/symfony#30706 Commits ------- 4b2007e Documented the new Unique constraint
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR add the possibility to extract private and protected properties from a class by passing a new argument to the
ReflectionExtractor
This new argument consist of flag that filters properties, so someone will also be able to use the
ReflectionExtractor
only for private propertyFlags method was prefered over a list of bool to avoid too many parameters and also be close to the reflection API of PHP