September 2018
Beginner to intermediate
218 pages
4h 27m
English
The area is a logical component that organizes code for optimized request processing. While the majority of the time we don't really have to code anything specific regarding areas, understanding them is key to understanding Magento.
The Magento\Framework\App\Area class AREA_* constants hint at the following areas:
const AREA_GLOBAL = 'global';const AREA_FRONTEND = 'frontend';const AREA_ADMINHTML = 'adminhtml';const AREA_DOC = 'doc';const AREA_CRONTAB = 'crontab';const AREA_WEBAPI_REST = 'webapi_rest';const AREA_WEBAPI_SOAP = 'webapi_soap';
By doing a lookup for the <argument name="areas" string across all of the <MAGENTO_DIR> di.xml files, we can see that five of these areas have been explicitly added to the areas argument of the
Read now
Unlock full access