From 2a6574db00c783bb4081d635c214508f54eac024 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Mon, 17 Jul 2017 17:07:06 -0500 Subject: [PATCH] Don't load the vendor autoload --- CRM/Core/ClassLoader.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Core/ClassLoader.php b/CRM/Core/ClassLoader.php index d5f8b2113f..737982c65d 100644 --- a/CRM/Core/ClassLoader.php +++ b/CRM/Core/ClassLoader.php @@ -104,7 +104,8 @@ class CRM_Core_ClassLoader { } $civicrm_base_path = dirname(dirname(__DIR__)); - require_once dirname(dirname(__DIR__)) . '/vendor/autoload.php'; + // @todo: need some way to check if we should register vendor or not + //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 @@ -123,7 +124,8 @@ 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/vendor/autoload.php"; + // @todo: need some way to check if we should register vendor or not + //require_once "$civicrm_base_path/vendor/autoload.php"; } /** -- 2.25.1