Skip to content

Commit

Permalink
Exclude stubFiles from RobotLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 4, 2020
1 parent a2c0403 commit d24dee2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Command/CommandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ public static function begin(
$robotLoader->excludeDirectory($directory);
}

$ignoreDirs = $robotLoader->ignoreDirs;
foreach ($container->getParameter('stubFiles') as $stubFile) {
$ignoreDirs[] = $stubFile;
}
$robotLoader->ignoreDirs = $ignoreDirs;

$robotLoader->register();
}

Expand Down

0 comments on commit d24dee2

Please sign in to comment.