merchantResolver = $merchantResolver; $this->sectionResolver = $sectionResolver; } public function create($params = array()) { if (!isset($params['merchant'])) { $params['merchant'] = $this->merchantResolver->getCurrent(); } return parent::create($params); } }