| @@ 56-67 (lines=12) @@ | ||
| 53 | * @param CustomerConfig $customerConfig |
|
| 54 | * @param array $data |
|
| 55 | */ |
|
| 56 | public function __construct( |
|
| 57 | Context $context, |
|
| 58 | IsUsingTwoFactor $isUsingTwoFactor, |
|
| 59 | Customer $customerGetter, |
|
| 60 | CustomerConfig $customerConfig, |
|
| 61 | array $data = [] |
|
| 62 | ) { |
|
| 63 | parent::__construct($context, $data); |
|
| 64 | $this->isUsingTwoFactor = $isUsingTwoFactor; |
|
| 65 | $this->customerGetter = $customerGetter; |
|
| 66 | $this->customerConfig = $customerConfig; |
|
| 67 | } |
|
| 68 | ||
| 69 | public function shouldBlockBeDisplayed() |
|
| 70 | { |
|
| @@ 63-75 (lines=13) @@ | ||
| 60 | * @param Fetcher $fetcher |
|
| 61 | * @param IsUsingTwoFactor $isUsingTwoFactor |
|
| 62 | */ |
|
| 63 | public function __construct( |
|
| 64 | Context $context, |
|
| 65 | CustomerAdmin $customerAdmin, |
|
| 66 | Customer $customerGetter, |
|
| 67 | Fetcher $fetcher, |
|
| 68 | IsUsingTwoFactor $isUsingTwoFactor |
|
| 69 | ) { |
|
| 70 | parent::__construct($context); |
|
| 71 | $this->customerAdmin = $customerAdmin; |
|
| 72 | $this->customerGetter = $customerGetter; |
|
| 73 | $this->isUsingTwoFactor = $isUsingTwoFactor; |
|
| 74 | $this->fetcher = $fetcher; |
|
| 75 | } |
|
| 76 | ||
| 77 | public function shouldActionBeRun() |
|
| 78 | { |
|