Top Banner
Magento 2 Advent of Magento2 By - Anshuman Ravi Magento Architect @anshumanravi
13

Advent of magento2

Feb 08, 2017

Download

Engineering

anshuman ravi
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Advent of magento2

Magento 2

Advent of Magento2

By -Anshuman RaviMagento Architect@anshumanravi

Page 2: Advent of magento2
Page 3: Advent of magento2
Page 4: Advent of magento2

Modern Tech Stack

❖ jQuery❖ PHP 5.5 & 5.6❖ HTML5+CSS3❖ Less❖ RequireJS❖ No ZF2 though

Page 5: Advent of magento2

❖ Out of Box support for Varnish

❖ Redis support out of box in CE.

❖ Private & Public Cache❖ FPC comes in M2 CE❖ Improved Indexers

❖ Optimized Indexing❖ Partial Indexing❖ No - Manual Indexing

required.

Improved Performance & Scalability

Page 6: Advent of magento2

Streamlined Customizations

❖ Dependency Injection❖ Plugins(Interceptions)❖ XML configuration and

validations

Page 7: Advent of magento2

Simplified External Integration

Service Contracts“A service contract is a set of PHP interfaces

that are defined for a module. A service contract includes data interfaces, which preserve data integrity, and service interfaces, which hide business logic details from service requestors such as controllers, web services, and other modules.”

Benefits of Using Service Contract:

1. Attempt to move business logic out from PHTML to Model where it belongs.

2. Loosely coupled module

3. Less messy upgrade.

Page 8: Advent of magento2

High Quality and Testing

Testing and Automation Framework❖ Full set of automated Tests❖ Magento Testing Framework❖ Continuous Integration and

Delivery❖ Performance Testing❖ Increased test coverage❖ Regression Testing

Page 9: Advent of magento2

Deployment Tool

❖ Standalone Web and CLI installer

❖ CLI tools❖ Composer integration

❖ Product and Software versions

❖ Semantic versioning.

Page 10: Advent of magento2

M1 developer notes❖ No Code Pools❖ No new template engines, We still use PHTML.❖ Skin folder removed.❖ Module now contains PHTML and static files.❖ Full support to php namespace❖ There is almost no change at database level , Except some naming change and minor structural ones.❖ You got jQuery.❖ No shitty XML tags , validator is there now.❖ More CLI tools

❖ deploy❖ magento❖ setup❖ Cache

❖ Each Layout handles has got its own file.❖ JS inclusion needs RequireJs config.❖ Each Controller actions has got its own file.❖ Plugin(Interception) is new thing. - Kinda closed to AOP .❖ Event -Observer remains same except it has to be defined in event.xml❖ New config files.❖ New cache types.

❖ Rewrite becomes Di.xml preference tag❖ Event Observer remains same.❖ We now have

Page 11: Advent of magento2

–FightClub

“It's only after we've lost everything that we're free to do anything.”

Page 12: Advent of magento2

“Best time to dive into Magento2 world is NOW!”

Page 13: Advent of magento2

Thanks!