Magento 2 0.74.0-beta5, beta6, beta7

Hi All, its been long time since last post (yes, Imagine, travels and holidays), and additional 3 publications were rolled out during this period – 0.74.0-beta5, beta6 and most recent beta7. I still working on better place on sharing backward incompatible changes (M2 developers hub forum?), but for now – below pretty long list with backward incompatible changes in codebase for last 3 publications.

0.74.0-beta5

app/code/Magento/Catalog/Api/Data/CategoryInterface.php
Added setCreatedAt method.


app/code/Magento/Catalog/Api/Data/ProductInterface.php
Added methods:
getProductLinks
setProductLinks
getOptions
setOptions
getMediaGalleryEntries
setMediaGalleryEntries
getGroupPrices
setGroupPrices
getTierPrices
setTierPrices


app/code/Magento/Catalog/Api/Data/ProductTierPriceInterface.php
Added methods getCustomerGroupId and setCustomerGroupId


app/code/Magento/Catalog/Api/ProductAttributeMediaGalleryManagementInterface.php
Changed create method’s signature


Magento\Sales\Controller\Adminhtml\Order\Creditmemo\AddComment
Changes in __construct method – type of the third parameter was changed from Magento\Sales\Model\Order\Email\Sender\CreditmemoSender to Magento\Sales\Model\Order\Email\Sender\CreditmemoCommentSender


Magento\Sales\Controller\Adminhtml\Order\Shipment\AddComment
Changes in __construct method – type of the third parameter was changed from Magento\Sales\Model\Order\Email\Sender\ShipmentSender to Magento\Sales\Model\Order\Email\Sender\ShipmentCommentSender


Magento\Sales\Model\Order\Email\Sender\OrderSender
Magento\Sales\Model\Order\Email\Sender\CreditmemoSender
Magento\Sales\Model\Order\Email\Sender\InvoiceSender
for the three classes method send has changed list of arguments to Creditmemo $creditmemo, $forceSyncMode = false


Magento\Sales\Model\Order\Email\Sender\ShipmentSender
Method send changed list of arguments to Shipment $creditmemo, $forceSyncMode = false


Magento\Reports\Model\Resource\Quote\Collection
Method prepareForProductInCarts was renamed to prepareActiveCartItems and method getOrdersSubSelect renamed to getOrdersData


Magento\Reports\Model\Resource\Customer\Collection
Methods joinOrders, addOrdersCount, addSumAvgTotals, orderByTotalAmount have been removed.


Magento\Reports\Model\Resource\Product\Collection
Methods addOrdersCount, addOrderedQty have been removed.


Magento\Framework\DB\Adapter\Pdo\Mysql
Argument $onUpdate has been removed in method addForeignKey


app/code/Magento/Checkout/Block/Cart/Shipping.php
Method __construct() changed argument Magento\Quote\Model\Quote\Address\CarrierFactoryInterface to Magento\Shipping\Model\CarrierFactoryInterface


app/code/Magento/Dhl/Model/Carrier.php
Methods collectRates() and proccessAdditionalValidation() changed argument type from Magento\Quote\Model\Quote\Address\RateRequest to Magento\Framework\Object


app/code/Magento/Fedex/Model/Carrier.php
Method collectRates() changed argument type from Magento\Quote\Model\Quote\Address\RateRequest to Magento\Framework\Object


app/code/Magento/OfflineShipping/Model/Carrier/Flatrate.php
app/code/Magento/OfflineShipping/Model/Carrier/Freeshipping.php
app/code/Magento/OfflineShipping/Model/Carrier/Pickup.php
app/code/Magento/OfflineShipping/Model/Carrier/Tablerate.php
Method collectRates() changed argument type from Magento\Quote\Model\Quote\Address\RateRequest to Magento\Framework\Object


app/code/Magento/Payment/Model/Cart/SalesModel/Factory.php
Method create() changed attribute type from Magento\Sales\Model\Order|Magento\Quote\Model\Quote to Magento\Quote\Api\Data\CartInterface


app/code/Magento/Payment/Model/Cart/SalesModel/SalesModelInterface.php
Method getTaxContainer() changed attribute type from Magento\Sales\Model\Order|\Magento\Quote\Model\Quote\Address to Magento\Sales\Api\Data\OrderInterface|\Magento\Quote\Api\Data\AddressInterface


app/code/Magento/Payment/Model/Method/AbstractMethod.php
Method isAvailable()() changed attribute type from Magento\Quote\Model\Quote to Magento\Quote\Api\Data\CartInterface
Method getInfoInstance() return type changed from Magento\Quote\Model\Quote to Magento\Quote\Api\Data\CartInterface


app/code/Magento/Payment/Model/MethodList.php
app/code/Magento/Payment/Model/Method/Cc.php
Methods attribute with type Magento\Quote\Model\Quote replaced with new type Magento\Quote\Api\Data\CartInterface


app/code/Magento/Quote/Model/Resource/Quote.php
Method __construct() changed attribute type from Magento\Eav\Model\Config to Magento\SalesSequence\Model\Manager
Method isOrderIncrementIdUsed() has been removed


app/code/Magento/Quote/Model/Resource/Quote/Address/Rate/Collection.php
Method __construct() changed attribute type from Magento\Quote\Model\Quote\Address\CarrierFactoryInterface to Magento\Shipping\Model\CarrierFactoryInterface


app/code/Magento/Shipping/Model/Carrier/AbstractCarrier.php
app/code/Magento/Shipping/Model/Carrier/AbstractCarrierInterface.php
app/code/Magento/Shipping/Model/Carrier/AbstractCarrierOnline.php
app/code/Magento/Ups/Model/Carrier.php
app/code/Magento/Usps/Model/Carrier.php
Attributes with type Magento\Quote\Model\Quote\Address\RateRequest changed to type Magento\Framework\Object


app/code/Magento/Quote/Model/Quote/Address/CarrierFactoryInterface.php moved to app/code/Magento/Shipping/Model/CarrierFactoryInterface.php


app/code/Magento/Quote/Model/Quote/Address/AbstractCarrierInterface.php moved to app/code/Magento/Shipping/Model/Carrier/AbstractCarrierInterface.php

0.74.0-beta6

Magento\Quote\Api\CartItemRepositoryInterface
Method delete has been removed. Added methods getListForCustomer, saveForCustomer, and deleteByIdForCustomer


Magento\Quote\Api\CartManagementInterface
Attribute $storeId has been removed in method createEmptyCart. Added method createEmptyCartForCustomer


Under the namespace Magento\Quote\Api added interfaces:
GuestBillingAddressManagementInterface
GuestCartItemRepositoryInterface
GuestCartManagementInterface
GuestCartRepositoryInterface
GuestCartTotalRepositoryInterface
GuestCouponManagementInterface
GuestPaymentMethodManagementInterface
GuestShippingAddressManagementInterface
GuestShippingMethodManagementInterface


Under the namespace Magento\Quote\Model\GuestCart added implementations:
GuestBillingAddressManagement
GuestCartItemRepository
GuestCartManagement
GuestCartRepository
GuestCartTotalRepository
GuestCouponManagement
GuestPaymentMethodManagement
GuestShippingAddressManagement
GuestShippingMethodManagement


Magento\Quote\Model\Cart\Access\CartManagementPlugin and Magento\Quote\Model\Cart\Access\CartRepositoryPlugin have been removed


Added new classes Magento\Quote\Model\Resource\Quote\QuoteIdMask and Magento\Quote\Model\QuoteIdMask


In Magento\Quote\Setup\InstallSchema added code to create table for storing cartId and obscured UUID based cartId mapping


Added Interface and implementations :
Magento\Framework\Webapi\Rest\Request\ParamOverriderInterface
Magento\Quote\Model\Webapi\ParamOverriderCartId
Magento\Webapi\Controller\Rest\ParamOverriderCustomerId


Magento\Webapi\Controller\Rest\ParamsOverrider constructor’s attributes were changed


app/code/Magento/Bundle/Api/ProductLinkManagementInterface.php
Added saveChild method


app/code/Magento/Bundle/Api/Data/LinkInterface.php
Added setId and getId methods
Removed getIsDefined and setIsDefined methods.


The following exceptions were eliminated and replaced with Magento\Framework\Exception\LocalizedException:
Magento\Eav\Exception
Magento\Shipping\Exception
Magento\Framework\Filesystem\FilesystemException
Magento\Framework\Filesystem\Io\IoException
Magento\Framework\DB\DBException
Magento\Framework\DB\Tree\Node\NodeException
Magento\Framework\DB\Tree\NodeSet\NodeSetException
Magento\Framework\DB\Tree\TreeException
Magento\Framework\Exception\File\ValidatorException
Magento\Framework\Exception\File\LargeSizeException

0.74.0-beta7

Magento\Webapi\Controller\Soap\Request\Handler
Added additional attribute $methodsMapProcessor


Magento\Webapi\Model\Rest\Config
Removed method _formatRoutePath


Magento\Framework\Api\DataObjectHelper
Added an additional parameter $methodsMapProcessor for the constructor


Refactored class Magento\Framework\Reflection\DataObjectProcessor to separate out responsibilities to the following smaller classes:
Magento\Framework\Reflection\CustomAttributesProcessor
Magento\Framework\Reflection\ExtensionAttributesProcessor
Magento\Framework\Reflection\FieldNamer
Magento\Framework\Reflection\MethodsMap
Magento\Framework\Reflection\TypeCaster


Magento\Framework\Webapi\ServiceOutputProcessor
Added an additional parameter $methodsMapProcessor for the constructor


YES! We are developing Magento 2

… Thats why you will see more changes. Let me know if the information is interesting for you…

Advertisements

One thought on “Magento 2 0.74.0-beta5, beta6, beta7

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s