[DCOM-93] Add Reflection Abstraction Created: 28/Dec/11 Updated: 03/Jan/12 Resolved: 02/Jan/12 |
|
| Status: | Resolved |
| Project: | Doctrine Common |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.2 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Benjamin Eberlei | Assignee: | Benjamin Eberlei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The Reflection code in ClassMetadata(Info*)s is getting out of control. I want to remove the dependency by introducing a ReflectionService interface: interface ReflectionService { public function getClassShortName($class); public function getClassNamespace($class); public function getClass($class); public function getAccessibleProperty($class, $property); public function hasPublicMethod($class, $method); } The reflection methods are specifically allowed to return NULL, so that we can create a StaticReflectionService that works without the classes actually existing. |
| Comments |
| Comment by Benjamin Eberlei [ 28/Dec/11 ] |
|
This issue is referenced in Github Pull-Request GH-89 |
| Comment by Benjamin Eberlei [ 29/Dec/11 ] |
|
Related Pull Request was closed: https://github.com/doctrine/common/pull/89 |
| Comment by Benjamin Eberlei [ 02/Jan/12 ] |
|
Implemented |