CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • ClassLoader in civicrm.settings.php - is it still a requirement?
Pages: [1]

Author Topic: ClassLoader in civicrm.settings.php - is it still a requirement?  (Read 353 times)

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
ClassLoader in civicrm.settings.php - is it still a requirement?
July 06, 2014, 08:37:25 pm
Code: [Select]
require_once 'CRM/Core/ClassLoader.php';
CRM_Core_ClassLoader::singleton()->register();

Docs say to throw this at the bottom of civicrm.settings.php ... thing is, over the last few months, most sites I've relocated or upgraded, I've found it necessary to remove this from the settings file, since otherwise I get complaints about duplicate attempt to define CRM_Core_ClassLoader.

Which is good I think, since it's a step towards PSR-1 compliance, but since the wiki still says those lines are required, I thought I'd ask.

Are we still expecting those lines to be required in a CiviCRM settings file? And if so, why might our sites seem to run better without?
@xurizaemon ● www.fuzion.co.nz

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: ClassLoader in civicrm.settings.php - is it still a requirement?
July 06, 2014, 08:40:41 pm
(I was misreading PSR-1 with regard to the settings file, that file is probably almost all side-effects.)
@xurizaemon ● www.fuzion.co.nz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • ClassLoader in civicrm.settings.php - is it still a requirement?

This forum was archived on 2017-11-26.