Skip to content

Commit

Permalink
Merge pull request #28 from magento-folks/bugs
Browse files Browse the repository at this point in the history
[Folks]Bugs
  • Loading branch information
dkvashninbay committed Oct 22, 2015
2 parents e0a56a7 + 2317aa3 commit f920640
Show file tree
Hide file tree
Showing 65 changed files with 567 additions and 3,628 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<block class="Magento\Framework\View\Element\Text\ListText" name="paypal.additional.actions"/>
<block class="Magento\Paypal\Block\Express\Review\Details" name="paypal.express.review.details" as="details" template="express/review/details.phtml">
<block class="Magento\Framework\View\Element\RendererList" name="checkout.onepage.review.item.renderers" as="renderer.list"/>
<block class="Magento\Checkout\Block\Cart\Totals" name="paypal.express.review.details.totals" as="totals" template="onepage/review/totals.phtml"/>
<block class="Magento\Checkout\Block\Cart\Totals" name="paypal.express.review.details.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>
</block>
<block class="Magento\CheckoutAgreements\Block\Agreements" name="paypal.express.review.details.agreements" as="agreements" template="Magento_CheckoutAgreements::additional_agreements.phtml"/>
</block>
Expand Down
47 changes: 4 additions & 43 deletions app/code/Magento/Checkout/Block/Onepage.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
*/
namespace Magento\Checkout\Block;

use Magento\Checkout\Block\Checkout\LayoutProcessorInterface;
use Magento\Customer\Api\CustomerRepositoryInterface;
use Magento\Customer\Model\Address\Config as AddressConfig;

/**
* Onepage checkout block
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Onepage extends \Magento\Checkout\Block\Onepage\AbstractOnepage
class Onepage extends \Magento\Framework\View\Element\Template
{
/**
* @var \Magento\Framework\Data\Form\FormKey
Expand All @@ -36,60 +32,25 @@ class Onepage extends \Magento\Checkout\Block\Onepage\AbstractOnepage
protected $configProvider;

/**
* @var array|Checkout\LayoutProcessorInterface[]
* @var array|\Magento\Checkout\Block\Checkout\LayoutProcessorInterface[]
*/
protected $layoutProcessors;

/**
* @param \Magento\Framework\View\Element\Template\Context $context
* @param \Magento\Directory\Helper\Data $directoryHelper
* @param \Magento\Framework\App\Cache\Type\Config $configCacheType
* @param \Magento\Customer\Model\Session $customerSession
* @param \Magento\Checkout\Model\Session $resourceSession
* @param \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory
* @param \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory
* @param CustomerRepositoryInterface $customerRepository
* @param AddressConfig $addressConfig
* @param \Magento\Framework\App\Http\Context $httpContext
* @param \Magento\Customer\Model\Address\Mapper $addressMapper
* @param \Magento\Framework\Data\Form\FormKey $formKey
* @param \Magento\Checkout\Model\CompositeConfigProvider $configProvider
* @param LayoutProcessorInterface[] $layoutProcessors
* @param array $layoutProcessors
* @param array $data
* @codeCoverageIgnore
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
\Magento\Directory\Helper\Data $directoryHelper,
\Magento\Framework\App\Cache\Type\Config $configCacheType,
\Magento\Customer\Model\Session $customerSession,
\Magento\Checkout\Model\Session $resourceSession,
\Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory,
\Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory,
CustomerRepositoryInterface $customerRepository,
AddressConfig $addressConfig,
\Magento\Framework\App\Http\Context $httpContext,
\Magento\Customer\Model\Address\Mapper $addressMapper,
\Magento\Framework\Data\Form\FormKey $formKey,
\Magento\Checkout\Model\CompositeConfigProvider $configProvider,
array $layoutProcessors = [],
array $data = []
) {
parent::__construct(
$context,
$directoryHelper,
$configCacheType,
$customerSession,
$resourceSession,
$countryCollectionFactory,
$regionCollectionFactory,
$customerRepository,
$addressConfig,
$httpContext,
$addressMapper,
$data
);
parent::__construct($context, $data);
$this->formKey = $formKey;
$this->_isScopePrivate = true;
$this->jsLayout = isset($data['jsLayout']) && is_array($data['jsLayout']) ? $data['jsLayout'] : [];
Expand Down
Loading

0 comments on commit f920640

Please sign in to comment.