Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-9544

Enable spl autoload of civi classes

    Details

      Description

      This patch will autoload any CRM_ classes as needed, without the random "require_once" statements.

      Note that global functions like "ts()" are not autoloaded, so those source files still must be included manually.

      Also, this patch will break any other custom autoloaders which expect to load classes beginning with "CRM_", how's that for a namespace conflict?

      http://svn.civicrm.org/civicrm/branches/trunk.autoload

        Attachments

        1. autoload.patch
          26 kB
          Andreas Hennings
        2. autoload.patch
          0.8 kB
          Adam Wight
        3. autoload.patch
          0.8 kB
          Adam Wight
        4. autoload4.patch
          4 kB
          Adam Wight

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              adamw Adam Wight
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: