Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      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.

        Issue Links

          Activity

          Hide
          Benjamin Eberlei added a comment -

          Implemented

          Show
          Benjamin Eberlei added a comment - Implemented
          Hide
          Benjamin Eberlei added a comment -

          Related Pull Request was closed: https://github.com/doctrine/common/pull/89

          Show
          Benjamin Eberlei added a comment - Related Pull Request was closed: https://github.com/doctrine/common/pull/89
          Hide
          Benjamin Eberlei added a comment -

          This issue is referenced in Github Pull-Request GH-89
          https://github.com/doctrine/common/pull/89

          Show
          Benjamin Eberlei added a comment - This issue is referenced in Github Pull-Request GH-89 https://github.com/doctrine/common/pull/89

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Benjamin Eberlei
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: