composer - Use classloader from civicrm-core.git instead of civicrm-packages.git.
authorTim Otten <totten@civicrm.org>
Fri, 2 Jan 2015 18:01:37 +0000 (10:01 -0800)
committerTim Otten <totten@civicrm.org>
Sat, 3 Jan 2015 20:20:04 +0000 (12:20 -0800)
CRM/Core/ClassLoader.php
composer.json
composer.lock
tests/phpunit/CiviTest/bootstrap.php

index 60d4df2ac55eb5991730dbe3a01417ebffc6362e..574b96416f455fe656b90d7a7316a5a63279d44f 100644 (file)
@@ -80,7 +80,7 @@ class CRM_Core_ClassLoader {
     }
     $civicrm_base_path = dirname(dirname(__DIR__));
 
-    require_once dirname(dirname(__DIR__)) . '/packages/vendor/autoload.php';
+    require_once dirname(dirname(__DIR__)) . '/vendor/autoload.php';
 
     // we do this to prevent a autoloader errors with joomla / 3rd party packages
     // use absolute path since we dont know the content of include_path as yet
@@ -99,7 +99,7 @@ class CRM_Core_ClassLoader {
     );
     $include_paths = implode(PATH_SEPARATOR, $include_paths);
     set_include_path($include_paths . PATH_SEPARATOR . get_include_path());
-    require_once "$civicrm_base_path/packages/vendor/autoload.php";
+    require_once "$civicrm_base_path/vendor/autoload.php";
   }
 
   public function initHtmlPurifier($prepend) {
index e41ef17a6dd1ccae23cf01376920c037b0f22253..4ee79b3b94f0843bb1cfbf9876169eb4c457bb90 100644 (file)
@@ -1,8 +1,8 @@
 {
   "autoload": {
     "psr-0": {
-      "PHPUnit_": ["."],
-      "Civi\\": ["../", "../tests/phpunit/"]
+      "PHPUnit_": ["packages/"],
+      "Civi\\": [".", "tests/phpunit/"]
     }
   },
   "require": {
index f791ef470f156b9d6e77bfdc44bcf67eff5e2fe6..9e6f4df8725b7a113057a27a9eeeb588fef3efa1 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "hash": "6778140f210ee24575efdd0b8f32bb11",
+    "hash": "33b8ac9b59c02e57b8aa1b24bee3c378",
     "packages": [
         {
             "name": "psr/log",
             "time": "2014-07-10 08:55:37"
         }
     ],
-    "packages-dev": [
-
-    ],
-    "aliases": [
-
-    ],
+    "packages-dev": [],
+    "aliases": [],
     "minimum-stability": "stable",
-    "stability-flags": [
-
-    ],
+    "stability-flags": [],
     "prefer-stable": false,
-    "platform": [
-
-    ],
-    "platform-dev": [
-
-    ]
+    "platform": [],
+    "platform-dev": []
 }
index a16ddec492559b00e9fb318eb97c13c98a9a1ede..8073d3139170cd9e0f17f0a181416efeea6968e7 100644 (file)
@@ -23,7 +23,7 @@ if ( file_exists( '/etc/timezone' ) ) {
 # Crank up the memory
 ini_set('memory_limit', '2G');
 
-require_once $GLOBALS['base_dir'] . '/packages/vendor/autoload.php';
+require_once $GLOBALS['base_dir'] . '/vendor/autoload.php';
 
 /*
 require $GLOBALS['base_dir'] . DIRECTORY_SEPARATOR .