Skip to content

Commit 97d759e

Browse files
committed
Merge branch 'sw-26238/fix-code-style' into '5.7'
SW-26238 - Fix order of methods in account controller See merge request shopware/5/product/shopware!785
2 parents 92f0231 + f3bb821 commit 97d759e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

engine/Shopware/Controllers/Frontend/Account.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ class Shopware_Controllers_Frontend_Account extends Enlight_Controller_Action
7171

7272
private CaptchaValidator $captchaValidator;
7373

74+
public function __construct(Shopware_Components_Config $config, CaptchaValidator $captchaValidator)
75+
{
76+
parent::__construct();
77+
$this->config = $config;
78+
$this->captchaValidator = $captchaValidator;
79+
}
80+
7481
/**
7582
* @return void
7683
*/
@@ -80,13 +87,6 @@ public function init()
8087
$this->customerService = Shopware()->Container()->get(CustomerServiceInterface::class);
8188
}
8289

83-
public function __construct(Shopware_Components_Config $config, CaptchaValidator $captchaValidator)
84-
{
85-
parent::__construct();
86-
$this->config = $config;
87-
$this->captchaValidator = $captchaValidator;
88-
}
89-
9090
public function preDispatch()
9191
{
9292
$this->View()->setScope(Smarty::SCOPE_PARENT);

0 commit comments

Comments
 (0)