forked fromjanschumann/drupal-composer-classloader
- Notifications
You must be signed in to change notification settings - Fork0
A simple module that utilizes composer´s autoload_namespaces.php to manage autoloading
License
NotificationsYou must be signed in to change notification settings
Bauer-Xcel-Media/drupal-composer-classloader
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A simple module enablescomposer autoloading for drupal modules.
This project can be checked out withcomposer.
{"require": {"janschumann/classloader_composer":"*" }}Usually no configuration is necessary.
Only if you have changed thevendor-dir configuration option in yourcomposer.json file, the absolute path to this directory has to be made available to drupal:
Via shell script:
$ drush vset composer_vendor_dir<path/to/vendor/dir>
Via php:
variable_set('composer_vendor_dir','<path/to/vendor/dir>');
After this module is required in your project´scomposer.json file, composer will autoload all classes added to thecomposer.json autoload section:
{"autoload": {"psr-0": {"My\\Namespace\\":"src" } }}About
A simple module that utilizes composer´s autoload_namespaces.php to manage autoloading
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
