Skip to content

Commit

Permalink
Added config-plugin-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Dec 8, 2018
1 parent faab5ed commit 959c971
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class Plugin implements PluginInterface, EventSubscriberInterface
{
private const EXTRA_OPTION_NAME = 'config-plugin';
private const EXTRA_DEV_OPTION_NAME = 'config-plugin-dev';

/**
* @var Package[] the array of active composer packages
Expand Down Expand Up @@ -134,6 +135,9 @@ protected function processPackage(Package $package)
}
if ($package->isRoot()) {
$this->loadDotEnv($package);
if (!empty($extra[self::EXTRA_DEV_OPTION_NAME])) {
$this->addFiles($package, $extra[self::EXTRA_DEV_OPTION_NAME]);
}
}

$aliases = $package->collectAliases();
Expand Down

0 comments on commit 959c971

Please sign in to comment.