Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

 
 

Repository files navigation

Overview

A simple module enablescomposer autoloading for drupal modules.

Installation

This project can be checked out withcomposer.

{"require": {"janschumann/classloader_composer":"*"  }}

Confguration

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>');

Usage

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"        }    }}

Bitdeli Badge

About

A simple module that utilizes composer´s autoload_namespaces.php to manage autoloading

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp