Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [autoloading]

The tag has no usage guidance.

0
votes
0answers
7 views

No Autoloader for SMS Providers like org_civicrm_sms_twilio

Classes like org_civicrm_sms_twilio don't start with CRM_ and are therefore not autoloaded, and therefore can't be accessed via the API without various jiggerypokery A) Is there a reason they don't ...
1
vote
1answer
30 views

class Civi not found

I'm trying to use the Civi class to debug an extension with build kit, but after I add this line: `Civi::log()->info('Hello, log!');` to my class I get: ampuser@58e3a823b9ee:/opt/buildkit/...
5
votes
2answers
307 views

Class naming and namespaces: best practice as an extension author?

Noting these related questions (1 2 3) and these two wiki pages (1 2) and the psr-0 standard, I remain a bit lost about current best practice in CiviCRM extensions! So if I have an extenstion org....
3
votes
2answers
599 views

Does class autoloading not work in standalone phpunit testing?

I'm following civix's upgrade instructions to enable unit tests to be executed with standalone phpunit. I've got my code in a work-in-progress git branch. The first commit captures the civix-...