Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Magento 2 Seminar - Anton Kril - Magento 2 Summary

762 views

Published on

Keynote of Anton Kril during the Magento 2 Seminar of January 22nd 2016 in Utrecht, The Netherlands, on the technical architecture of Magento 2

Published in: Technology
  • Thanks for sharing nice presentation. I would like to suggest one more Magento 2 multipurpose and responsive theme Kosmic. I have puchaged and installed just before a few days. I like the most in this theme is that have many features & premium extenions free, easy customization & well written code. http://goo.gl/fj4BZ9
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Magento 2 Seminar - Anton Kril - Magento 2 Summary

  1. 1. Magento 2 Summary
  2. 2. Me Anton Kril Magento 2 Lead Architect @AntonKril akril@magento.com
  3. 3. Communication & Documentation ☞ github.com/magento/ magento2 ☞ devdocs.magento.com ☞ community.magento.com ☞ alankent.me
  4. 4. $ composer install
  5. 5. Console Application $ bin/magento setup:upgrade
  6. 6. Configuration ☞ Configuration file per sub-system (events.xml, cache.xml) ☞ All xml validated ☞ 3 Stages of configuration loading: ➀ primary (app/etc/*) ➁ global (<ModuleDir>/etc/*) ➂ area (<ModuleDir>/etc/<areaCode>/*)
  7. 7. Dependency Injection class MyClass { public function __construct(MagentoFrameworkEventManager $eventManager) { $this->eventManager = $eventManager; } public function someFunc() { // … $this->eventManager->dispatch(‘some_event’); // … } }
  8. 8. Interception Ability to observe public method calls: class eventManagerPlugin { public function beforeDispatch(EventManager $subject, $eventName, $arguments) { $this->log->put(“Event ‘$eventName’ was dispatched“); } }
  9. 9. Service Contracts Public API of a module: namespace MagentoCustomerApi; interface AccountManagementInterface { public function createAccount(CustomerInterface $customer, $password = null); public function activate($email, $confirmationKey); public function changePassword($email, $currentPassword, $newPassword); }
  10. 10. WebAPI Easy WebAPI creation (REST & SOAP) <routes> <route url="/V1/customerGroups/:id" method="GET"> <service class="MagentoCustomerApiGroupRepositoryInterface" method="getById"/> <resources> <resource ref="Magento_Customer::group"/> </resources> </route> </routes>
  11. 11. Themes ☞ More granular templates ☞ View file fallback ☞ LESS imports
  12. 12. UI Library
  13. 13. RequireJS Loader define( [ 'Magento_Checkout/js/model/address-converter' ], function(addressConverter) { "use strict"; return function(addressData) { return addressConverter.formAddressDataToQuoteAddress(addressData); }; } );
  14. 14. JS Mixins var config = { mixins: { ‘Magento_Checkout/js/model/address-converter’: { ‘My_Module/js/model/address-converter-mixin’: true } } };
  15. 15. UI Components ☞ JS & CSS & HTML ☞ New forms & grids in admin and storefront
  16. 16. PageCache ☞ built-in cache in CE ☞ Varnish support in CE ☞ Private content rendered in browser
  17. 17. Asynchronous processing ☞ delayed execution ☞ ee-only

×