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

Make In-Portal Class Locator externally usable

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.2-B1
    • Component/s: Data Management
    • Labels:
      None
    • Change Log Group:
      Added
    • Change Log Message:
      Added "/tools/class_locator.php" file for static code analysis in 3rd-party libraries.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Plan:

      1. create public "kFactory::findClassFile($class)" method, that will return absolute path to file, where given class/interface/trait is located
      2. create public "kApplication::findClassFile($class)" method, that will call above created method on "$this->Factory" object
      3. create "/tools/class_locator.php" file, that would return closure, that:
        • would accept "$class" argument
        • return result of "kApplication::findClassFile" method, when not "false"
        • return result of "Composer\Autoload\ClassLoader::findFile" method otherwise

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 2m
                  1h 2m