Magento: Difference between revisions

From Wiki RB4
Line 38: Line 38:
===Service Layer===
===Service Layer===
* bridges presentation and domain layer
* bridges presentation and domain layer
* provides service contracts (PHP interface, REST/SOAP API)
===Business Layer===
* implementents the business logic
* modul communication via event observers, pluginsa and di.xml
===Persistance Layer===
* implements CRUD (create, read, update, delete) requests
* there are simple resource model and Entity-Attribute-Value (EAV) resource model


==Sources==
==Sources==

Revision as of 10:06, 9 August 2018

General

  • object oriented
  • uses design patterns (GoF) like GRASP, but in an individual manner
  • uses MVC with thin controller approach (Business Logic is mainly in Model or View), View is configured by layout XML
  • user groups:
    • web business user
    • system administrator
    • web API user

Technology

Architecture

  • layers:
    • presentation
    • service
    • domain
    • persistence

Persistence Layer

  • consists of
    • layouts
    • blocks
    • templates
    • controllers

Service Layer

  • bridges presentation and domain layer
  • provides service contracts (PHP interface, REST/SOAP API)

Business Layer

  • implementents the business logic
  • modul communication via event observers, pluginsa and di.xml

Persistance Layer

  • implements CRUD (create, read, update, delete) requests
  • there are simple resource model and Entity-Attribute-Value (EAV) resource model

Sources