Skip to content

Commit

Permalink
Update Yii2CodeScraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wapmorgan authored Jan 30, 2023
1 parent 387b8d7 commit 637d800
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Integration/Yii2CodeScraper.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ class Yii2CodeScraper extends ScraperSkeleton
public function scrape(string $folder): array
{
if (!class_exists('\\Yii', false)) {
// $directory = dirname(__FILE__, 6);
$this->initializeYiiAutoloader($folder);
} else {
$directory = Yii::getAlias('@app');
}
$directory = Yii::getAlias('@app');

list($total_actions, $controllers) = $this->collectActions($directory);
$this->notice('Retrieved '
Expand Down

0 comments on commit 637d800

Please sign in to comment.