Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-BETA2
    • Component/s: None
    • Labels:
      None

      Description

      This is a rather trivial issue: I'd like to add a function to the Common\ClassLoader called getClassPath($className) or something named similarly so that we are able to find where an autoloader will look for the specified class. The autoloader doesn't check for file existence normally (as it shouldn't) but there are cases where the developer does need to make sure that the file exists before a class is attempted to be loaded.

      I've attached a patch for the changes that I'm proposing.

      1. patch.diff
        1 kB
        Michael Ridgway

        Activity

        Michael Ridgway created issue -
        Hide
        Roman S. Borschel added a comment -

        We have another idea for these issues (basically for the issue of using class_exists(..., true) and your new method may even complement this nicely. I will let you know what I mean here soon.

        Show
        Roman S. Borschel added a comment - We have another idea for these issues (basically for the issue of using class_exists(..., true) and your new method may even complement this nicely. I will let you know what I mean here soon.
        Roman S. Borschel made changes -
        Field Original Value New Value
        Project Doctrine 2 - ORM [ 10032 ] Doctrine Common [ 10043 ]
        Key DDC-570 DCOM-7
        Component/s Common [ 10010 ]
        Roman S. Borschel made changes -
        Priority Trivial [ 5 ] Minor [ 4 ]
        Fix Version/s 2.0.0-BETA2 [ 10061 ]
        Hide
        Roman S. Borschel added a comment -

        There is now ClassLoader#classExists as well as ClassLoader#getClassLoader available.

        Show
        Roman S. Borschel added a comment - There is now ClassLoader#classExists as well as ClassLoader#getClassLoader available.
        Roman S. Borschel made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 11322 ] jira-feedback2 [ 17933 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17933 ] jira-feedback3 [ 19896 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DCOM-7, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Michael Ridgway
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: