Archive of whiteboard topics, mostly about Magento, PHP, OOP, design patterns, etc.
- Create
selectsource model with data fromdi.xml - Create categorized
selectsource model with data fromdi.xml - Generate token for user authentication
- Generate nonce for reset link
- Update an entry timestamp via
DateTimefactory - Deduplicate redirect logic between inheritance-based controllers
- Implement CSRF-aware request validation in controllers
- Dispatch
before,afterevents while saving an entity - Modify metadata/data via data modifiers in an entity
DataProviderclass - Improve frontend load time via cache-driven SQL queries