Skip to content

Commit

Permalink
Merge pull request #186 from firegento/fix-issecurearea-exists-error
Browse files Browse the repository at this point in the history
Fix Registry Key Exists Error
  • Loading branch information
sprankhub authored Oct 30, 2020
2 parents 1c6b38a + 184995c commit c08da3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Command/SetupRunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
// phpcs:ignore
$configLoader = $this->objectManager->get('Magento\Framework\ObjectManager\ConfigLoaderInterface');
$this->objectManager->configure($configLoader->load($area));
$this->registry->register('isSecureArea', true);
if (!$this->registry->registry('isSecureArea')) {
$this->registry->register('isSecureArea', true);
}

try {
/*
Expand Down
3 changes: 3 additions & 0 deletions Test/script/travis_before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ mysql -uroot -e '
CREATE DATABASE `magento`;
CREATE DATABASE `magento-integration-tests`;
'

# make sure to use Composer 1, because Magento does not support Composer 2 yet
composer self-update --1

0 comments on commit c08da3f

Please sign in to comment.