Import of yiisoft/app-advanced as of Oct 19 2014