I found a bug in file: services/scanners/ScannerFile.php.
On line 203 there is a function named "_getRoot".
It looks like this:
private function _getRoot() {
return dirname(Yii::getAlias($this->module->root));
}
But it should be:
private function _getRoot() {
return Yii::getAlias($this->module->root);
}
You must not use the dirname function there because it cuts off the last folder from the path and starts scanning from 1 level higher folder. It scanned all my other projects aswell and the "dirname" function was the problem.
For example:
$dir = '/var/www/projects/myapp';
echo dirname($dir);
It will give you just '/var/www/projects' (last folder gets lost) so don't use dirname method here, Yii already provides valid path with Yii::getAlias.
I found a bug in file: services/scanners/ScannerFile.php.
On line 203 there is a function named "_getRoot".
It looks like this: private function _getRoot() { return dirname(Yii::getAlias($this->module->root)); }
But it should be: private function _getRoot() { return Yii::getAlias($this->module->root); }
You must not use the dirname function there because it cuts off the last folder from the path and starts scanning from 1 level higher folder. It scanned all my other projects aswell and the "dirname" function was the problem.
For example: $dir = '/var/www/projects/myapp'; echo dirname($dir); It will give you just '/var/www/projects' (last folder gets lost) so don't use dirname method here, Yii already provides valid path with Yii::getAlias.