yiisoft/yii2 — pull request #4846 by terazoid (2014-08-28 11:32:16+00:00)
Title: added resolving of symlinks for recursive directories creation

Example of bug:
If you have a symlink for directory
/var/www/site.com/storage->/media/data
then this code will cause a exception:

```
FileHelper::createDirectory(Yii::getAlias('@app/storage/images'), true);
```

```
PHP Warning – yii\base\ErrorException
mkdir(): File exists
```