Skip to content

Commit

Permalink
Resolves #279
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini committed Jun 30, 2021
1 parent 4e6431f commit e30b3d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Command/CommandTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ trait CommandTrait
*/
public function loadConfig(string $config = 'swagger_bake'): void
{
if ($config !== 'swagger_bake') {
Configure::delete('SwaggerBake');
}

if (!Configure::load($config, 'default')) {
throw new SwaggerBakeRunTimeException(
"SwaggerBake configuration file `$config` is missing"
Expand Down

0 comments on commit e30b3d6

Please sign in to comment.