advent of magento2
TRANSCRIPT
Magento 2
Advent of Magento2
By -Anshuman RaviMagento Architect@anshumanravi
Modern Tech Stack
❖ jQuery❖ PHP 5.5 & 5.6❖ HTML5+CSS3❖ Less❖ RequireJS❖ No ZF2 though
❖ 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
Streamlined Customizations
❖ Dependency Injection❖ Plugins(Interceptions)❖ XML configuration and
validations
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.
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
Deployment Tool
❖ Standalone Web and CLI installer
❖ CLI tools❖ Composer integration
❖ Product and Software versions
❖ Semantic versioning.
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
–FightClub
“It's only after we've lost everything that we're free to do anything.”
“Best time to dive into Magento2 world is NOW!”
Thanks!