-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Description
I've installed the PHP library via Composer and I noticed that Mixpanel is set to load automatically when the composer autoloader is loaded, from composer.json:
"autoload": {
"files": ["lib/Mixpanel.php"]
}
This is not ideal because the Mixpanel class and all dependencies get automatically loaded all the time in my application, even if I want to do something completely unrelated to mixpanel. Perhaps using psr-0 or classmap would be a better solution? This would mean the class is only loaded when first used and additionally you will not need to manually require other classes in your library as you currently do.
Metadata
Metadata
Assignees
Labels
No labels