summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-07-11 18:48:37 +0200
committerAndrey Andreev <narf@devilix.net>2014-07-11 18:48:37 +0200
commited86ee14f3a36de1034b8fa19ff6d41aeb428a93 (patch)
tree33d436035a0d1863625aef1b5253611d13532e1a /application
parent9fa275e6aba369fab6557284a84e2c0dda77da35 (diff)
Add setting ['composer_autoload']
Supersedes PR #3132
Diffstat (limited to 'application')
-rw-r--r--application/config/config.php22
1 files changed, 21 insertions, 1 deletions
diff --git a/application/config/config.php b/application/config/config.php
index d269b6e5d..b6b3c9fdf 100644
--- a/application/config/config.php
+++ b/application/config/config.php
@@ -121,7 +121,6 @@ $config['charset'] = 'UTF-8';
*/
$config['enable_hooks'] = FALSE;
-
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
@@ -136,6 +135,27 @@ $config['enable_hooks'] = FALSE;
*/
$config['subclass_prefix'] = 'MY_';
+/*
+|--------------------------------------------------------------------------
+| Composer auto-loading
+|--------------------------------------------------------------------------
+|
+| Enabling this setting will tell CodeIgniter to look for a Composer
+| package auto-loader script in application/vendor/autoload.php.
+|
+| $config['composer_autoload'] = TRUE;
+|
+| Or if you have your vendor/ directory located somewhere else, you
+| can opt to set a specific path as well:
+|
+| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
+|
+| For more information about Composer, please visit http://getcomposer.org/
+|
+| Note: This will NOT disable or override the CodeIgniter-specific
+| autoloading (application/config/autoload.php)
+*/
+$config['composer_autoload'] = FALSE;
/*
|--------------------------------------------------------------------------