Skip to content

Commit

Permalink
Make sure that the new dependancy on Serializer\Json is the last thin…
Browse files Browse the repository at this point in the history
…g in the constructor
  • Loading branch information
dmanners committed Feb 9, 2017
1 parent eb31f86 commit 5c57dc2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/Checkout/Block/Cart/Shipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class Shipping extends \Magento\Checkout\Block\Cart\AbstractCart
* @param \Magento\Checkout\Model\Session $checkoutSession
* @param \Magento\Checkout\Model\CompositeConfigProvider $configProvider
* @param array $layoutProcessors
* @param \Magento\Framework\Serialize\Serializer\Json|null $serializer
* @param array $data
* @param \Magento\Framework\Serialize\Serializer\Json|null $serializer
* @throws \RuntimeException
*/
public function __construct(
Expand All @@ -41,8 +41,8 @@ public function __construct(
\Magento\Checkout\Model\Session $checkoutSession,
\Magento\Checkout\Model\CompositeConfigProvider $configProvider,
array $layoutProcessors = [],
\Magento\Framework\Serialize\Serializer\Json $serializer = null,
array $data = []
array $data = [],
\Magento\Framework\Serialize\Serializer\Json $serializer = null
) {
$this->configProvider = $configProvider;
$this->layoutProcessors = $layoutProcessors;
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Checkout/Block/Cart/Sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class Sidebar extends AbstractCart
* @param \Magento\Checkout\Model\Session $checkoutSession
* @param \Magento\Catalog\Helper\Image $imageHelper
* @param \Magento\Customer\CustomerData\JsLayoutDataProviderPoolInterface $jsLayoutDataProvider
* @param \Magento\Framework\Serialize\Serializer\Json|null $serializer
* @param array $data
* @param \Magento\Framework\Serialize\Serializer\Json|null $serializer
* @throws \RuntimeException
*/
public function __construct(
Expand All @@ -48,8 +48,8 @@ public function __construct(
\Magento\Checkout\Model\Session $checkoutSession,
\Magento\Catalog\Helper\Image $imageHelper,
\Magento\Customer\CustomerData\JsLayoutDataProviderPoolInterface $jsLayoutDataProvider,
\Magento\Framework\Serialize\Serializer\Json $serializer = null,
array $data = []
array $data = [],
\Magento\Framework\Serialize\Serializer\Json $serializer = null
) {
if (isset($data['jsLayout'])) {
$this->jsLayout = array_merge_recursive($jsLayoutDataProvider->getData(), $data['jsLayout']);
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Checkout/Block/Onepage.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ class Onepage extends \Magento\Framework\View\Element\Template
* @param \Magento\Framework\Data\Form\FormKey $formKey
* @param \Magento\Checkout\Model\CompositeConfigProvider $configProvider
* @param array $layoutProcessors
* @param \Magento\Framework\Serialize\Serializer\Json|null $serializer
* @param array $data
* @param \Magento\Framework\Serialize\Serializer\Json|null $serializer
* @throws \RuntimeException
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
\Magento\Framework\Data\Form\FormKey $formKey,
\Magento\Checkout\Model\CompositeConfigProvider $configProvider,
array $layoutProcessors = [],
\Magento\Framework\Serialize\Serializer\Json $serializer = null,
array $data = []
array $data = [],
\Magento\Framework\Serialize\Serializer\Json $serializer = null
) {
parent::__construct($context, $data);
$this->formKey = $formKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ protected function setUp()
$this->checkoutSession,
$this->configProvider,
[$this->layoutProcessor],
$this->serializer,
['jsLayout' => $this->layout]
['jsLayout' => $this->layout],
$this->serializer
);
}

Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Checkout/Test/Unit/Block/OnepageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ protected function setUp()
$this->formKeyMock,
$this->configProviderMock,
[$this->layoutProcessorMock],
$this->serializer,
[]
[],
$this->serializer
);
}

Expand Down

0 comments on commit 5c57dc2

Please sign in to comment.