Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1429

Class hierarchy analyzer

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.0-B1
    • Component/s: Other
    • Labels:
      None
    • Change Log Group:
      Added
    • Change Log Message:
      Allow developer to operate on class group having same parent/implementing same interface.
    • Story Points:
      2
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Part 1:

      1. for each class in class map also record:
        • what classes does it extend
        • what interfaces does it implement
      2. when configuring autoloader (during unit config cache rebuild) create reverse map from that information (key - class/interface, value - array of classes, that extend/implement it)

      Part 2:

      Create getSubClasses that will:

      • for a given class/interface get all classes from above map
      • for each of retrieved classes call this method (recursion) and merge results back
      • filter out abstract classes or interfaces
      • for every class see if we have a replacement in "classMap" array and if we do use replacement class instead

      Think about way how we can do pseudo-based discovery (e.g. all classes are registered under "*_Router" pseudos).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Gleb Sinkovskiy [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: