Skip to content

Commit

Permalink
MAGETWO-39841: [GitHub] Running 'log:clean' through cli results in an…
Browse files Browse the repository at this point in the history
… error: 'Area code not set' #1442

- fixed code style
  • Loading branch information
Olga Kopylova committed Jul 15, 2015
1 parent 7fe66c5 commit bdfd58c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ public function __construct(ObjectManagerFactory $objectManagerFactory)
$params[StoreManager::PARAM_RUN_TYPE] = 'store';
$objectManager = $objectManagerFactory->create($params);


/** @var \Magento\Framework\App\State $appState */
$appState = $objectManager->get('Magento\Framework\App\State');
$appState->setAreaCode('adminmhtml'); //TODO: temporary fix.
$appState->setAreaCode('adminmhtml');
$this->collectionFactory = $objectManager->create('Magento\Indexer\Model\Indexer\CollectionFactory');
$this->indexerFactory = $objectManager->create('Magento\Indexer\Model\IndexerFactory');
parent::__construct();
Expand Down

0 comments on commit bdfd58c

Please sign in to comment.