Question(s):
- Name/List the design patterns used in Magento 2
- What are the design patterns used in Magento 2
Sample Answer:
Magento 2 uses nearly 20 design patterns:
- Factory Pattern
- Repository Pattern
- Singleton Pattern
- Model View Controller (MVC) Pattern
- Registry Pattern
- Front Controller Pattern
- Prototype Pattern
- Service Locator Pattern
- Object Pool Pattern
- Lazy Loading Pattern
- Iterator Pattern
- Module Pattern
- Observer Pattern
- Service Contract Pattern
- Proxy Pattern
- Object Manager Patterns
- Dependency Injection Pattern
- Active Records
- Injectable Pattern
- Non-Injectable Pattern