Skip to content

Commit

Permalink
Merge pull request #7147 from GawainLynch/hotfix/default-bundle
Browse files Browse the repository at this point in the history
[3.4] Update namespace for default bundle 🐨
  • Loading branch information
bobdenotter committed Nov 4, 2017
2 parents 8b6d672 + 6f7c4e7 commit 80f44e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Composer/Script/BundleConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Bolt\Composer\Script;

use Bolt\Bundle\Site\SiteBundleLoader;
use Bolt\Collection\MutableBag;
use Bolt\Nut\Output\NutStyleInterface;
use Bolt\Nut\Style\NutStyle;
use Bundle\Site\CustomisationExtension;
use Composer\Script\Event;
use Symfony\Component\Filesystem\Exception\IOException;
use Symfony\Component\Filesystem\Filesystem;
Expand Down Expand Up @@ -114,13 +114,13 @@ private function updateSiteBundleLoader(MutableBag $contents)

$extensions = MutableBag::from($contents->get('extensions', []));
foreach ($extensions as $extension) {
if (is_a($extension, SiteBundleLoader::class, true)) {
if (is_a($extension, CustomisationExtension::class, true)) {
// If there is already a valid entry, exit
return;
}
}
// Add the extension to the bag
$extensions->add(SiteBundleLoader::class);
$extensions->add(CustomisationExtension::class);
$contents->set('extensions', $extensions);
}
}

0 comments on commit 80f44e0

Please sign in to comment.