Magento 2 0.74.0-beta4

Today we have published 0.74.0-beta4, and as last week, i want to share some changes delivered with the update.

Backward Incompatible changes

Added dependency on Magento\Sales\Model\Order\Address\Renderer in the classes:
Magento\Rma\Block\Adminhtml\Rma\Edit\Tab\General\ShippingAddress
Magento\Rma\Block\Returns\Create
Magento\Rma\Model\Pdf\Rma
Magento\Rma\Model\Rma\Status\History
Magento\Sales\Block\Adminhtml\Order\View\Info
Magento\Sales\Block\Order\Info
Magento\Sales\Block\Order\PrintOrder\Creditmemo
Magento\Sales\Block\Order\PrintOrder\Invoice
Magento\Sales\Block\Order\PrintOrder\Shipment
Magento\Sales\Model\Order\Email\Sender\CreditmemoCommentSender
Magento\Sales\Model\Order\Email\Sender\CreditmemoSender
Magento\Sales\Block\Order\PrintOrder\Invoice
Magento\Sales\Block\Order\PrintOrder\Shipment
Magento\Sales\Model\Order\Email\Sender\CreditmemoCommentSender
Magento\Sales\Model\Order\Email\Sender\CreditmemoSender
Magento\Sales\Model\Order\Email\Sender\InvoiceCommentSender
Magento\Sales\Model\Order\Email\Sender\InvoiceSender
Magento\Sales\Model\Order\Email\Sender\OrderCommentSender
Magento\Sales\Model\Order\Email\Sender\OrderSender
Magento\Sales\Model\Order\Email\Sender\ShipmentCommentSender
Magento\Sales\Model\Order\Email\Sender\ShipmentSender
Magento\Sales\Model\Order\Pdf\AbstractPdf
Magento\Sales\Model\Order\Pdf\Creditmemo
Magento\Sales\Model\Order\Pdf\Invoice
Magento\Sales\Model\Order\Pdf\Shipment
Magento\Shipping\Model\Order\Pdf\Packaging


Removed dependency on Magento\Framework\Stdlib\DateTime\TimezoneInterface and Magento\Framework\Stdlib\DateTime\DateTime in the classes:
Magento\Sales\Model\AbstractModel
Magento\Sales\Model\Order
Magento\Sales\Model\Order\Comment
Magento\Sales\Model\Order\Item
Magento\Sales\Model\Order\Address
Magento\Sales\Model\Order\Payment
Magento\Sales\Model\Order\Payment\Info
Magento\Sales\Model\Order\Payment\Transaction
Magento\Sales\Model\Order\Invoice
Magento\Sales\Model\Order\Invoice\Item
Magento\Sales\Model\Order\Invoice\Comment
Magento\Sales\Model\Order\Shipment
Magento\Sales\Model\Order\Shipment\Item
Magento\Sales\Model\Order\Shipment\Comment
Magento\Sales\Model\Order\Creditmemo
Magento\Sales\Model\Order\Creditmemo\Item
Magento\Sales\Model\Order\Creditmemo\Track
Magento\Sales\Model\Order\Creditmemo\Comment


In Magento\Sales\Model\AbstractModel removed getStore, getCreatedAtDate, getCreatedAtStoreDate methods.


Magento\Sales\Model\Resource\Entity renamed to Magento\Sales\Model\Resource\EntityAbstract


The following exceptions were eliminated and replaced with Magento\Framework\Exception\LocalizedException:

Magento\Backup\Exception
Magento\Catalog\Exception
Magento\Reports\Exception
Magento\Sales\Exception
Magento\SalesRule\Exception
Magento\Exception
Magento\Framework\Exception
Magento\UrlRewrite\Model\EntityNotAssociatedWithWebsiteException
Magento\Framework\App\Action\Exception
Magento\Framework\App\Action\NotFoundException
Magento\Framework\Code\ValidationException
Magento\Framework\Css\PreProcessor\Adapter\AdapterException
Magento\Framework\Mail\Exception
Magento\Framework\Stdlib\DateTime\Timezone\ValidationException
Magento\Framework\Module\Exception
Magento\Framework\Data\Argument\MissingOptionalValueException
Magento\Framework\Session\SaveHandlerException
Magento\Framework\ForeignKey\Exception
Magento\CatalogInventory\Exception
Magento\CatalogRule\CatalogRuleException
Magento\Payment\Exception
Magento\UrlRewrite\Model\Storage\DuplicateEntryException


Magento\BootstrapException replaced with Magento\Framework\Exception\State\InitException


Magento\Framework\BootstrapException replaced with Magento\Framework\Exception\State\InitException


Direct dependency of \Magento\Framework\Controller\Result\RedirectFactory was removed in AbstractAction and RedirectFactory is injected via context.


Backward Compatible change

There are some “good to know” changes:


Added interface Magento\Payment\Model\InfoInterface, it used instead of Magento\Payment\Model\Info, and may be implemented by Magento\Sales\Model\Order\Payment\Info or Magento\Quote\Model\Quote\Payment\Info.


Magento\Sales\Model\Resource\EntityAbstract overrides native save($object) method.


If you will find more changes, which may affect ongoing M1 to M2 extensions migration, or just M2 extension development – please share in comments.

Happy Friday!

Advertisements

One thought on “Magento 2 0.74.0-beta4

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 )

w

Connecting to %s