Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.4] Update namespace for default bundle 馃惃 #7147

Merged
merged 1 commit into from
Nov 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}