yiisoft/yii — pull request #2954 by ujovlado (2013-10-11 18:51:39+00:00)
Title: Added autoload part to composer.json for easiest autoloading

With this change, Composer autoloading will be easier.

With following structure (for example):
```
/protected
/vendor
/web/index.php
```

our `index.php` can look like this:
```php
// register composer auto loader
require_once(dirname(__FILE__).'/../vendor/autoload.php');

$config=dirname(__FILE__).'/../protected/config/main.php';

// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

Yii::createWebApplication($config)->run();
```

Because in `/vendor/composer/autoload_files.php` we will have:
```php