Skip to content

Commit

Permalink
Correct assignment and consistent naming, add phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
fooman committed Feb 7, 2017
1 parent 099ee76 commit 3548a1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/internal/Magento/Framework/App/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,22 @@ class Cron implements \Magento\Framework\AppInterface
* @param Console\Response $response
* @param ObjectManagerInterface $objectManager
* @param array $parameters
* @param AreaList|null $areaList
*/
public function __construct(
State $state,
Console\Request $request,
Console\Response $response,
ObjectManagerInterface $objectManager,
array $parameters = [],
\Magento\Framework\App\AreaList $arealist = null
\Magento\Framework\App\AreaList $areaList = null
) {
$this->_state = $state;
$this->_request = $request;
$this->_request->setParams($parameters);
$this->_response = $response;
$this->objectManager = $objectManager;
$this->arealist = $arealist ?: $this->objectManager->get(\Magento\Framework\App\AreaList::class);
$this->areaList = $areaList ? $areaList : $this->objectManager->get(\Magento\Framework\App\AreaList::class);
}

/**
Expand Down

0 comments on commit 3548a1a

Please sign in to comment.