You are here

constant XAUTOLOAD_LIB_DIR in X Autoload 7.3

Same name and namespace in other branches
  1. 7.5 xautoload.early.lib.inc \XAUTOLOAD_LIB_DIR
  2. 7.4 xautoload.early.lib.inc \XAUTOLOAD_LIB_DIR

You can include this file as early in the request as you wish, e.g. from your site's settings.php, to make the class loader available for external libraries during bootstrap.

This will *not* register any Drupal modules, because information about these might not be available yet.

2 uses of XAUTOLOAD_LIB_DIR
_xautoload_autoload_temp in ./xautoload.early.inc
Temporary loader callback, to avoid any module_load_include() while building the real autoloader.
_xautoload_register in ./xautoload.early.inc
Create and register the xautoload class loader. Register the xautoload prefix, but don't register any Drupal-specific stuff yet.

File

./xautoload.early.inc, line 12

Code

define('XAUTOLOAD_LIB_DIR', dirname(__FILE__) . '/lib');