Skip to content

Commit

Permalink
[BUGFIX] Solved incorrect dependency injection
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisvoncken committed May 15, 2018
1 parent f3b07dc commit 561079b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Controller/Adminhtml/Translation/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,19 @@ class Save extends \Magento\Backend\App\Action
* @param \Experius\MissingTranslations\Model\TranslationFactory $translationFactory
* @param \Experius\MissingTranslations\Helper\Data $helper
* @param \Magento\Backend\Model\Auth\Session $authSession
* @param \Magento\Framework\Locale\ResolverInterface $localeResolver
*/
public function __construct(
\Magento\Backend\App\Action\Context $context,
\Magento\Framework\App\Request\DataPersistorInterface $dataPersistor,
\Experius\MissingTranslations\Model\TranslationFactory $translationFactory,
\Experius\MissingTranslations\Helper\Data $helper,
\Magento\Backend\Model\Auth\Session $authSession,
\Magento\Framework\Locale\ResolverInterface $localeResolver
\Magento\Backend\Model\Auth\Session $authSession
) {
$this->dataPersistor = $dataPersistor;
$this->translationFactory = $translationFactory;
$this->helper = $helper;
$this->authSession = $authSession;
$this->localeResolver = $localeResolver;
$this->localeResolver = $context->getLocaleResolver();

parent::__construct($context);
}
Expand Down

0 comments on commit 561079b

Please sign in to comment.