Registering a module
We first start by defining the app/code/Foggyline/Helpdesk/registration.php
file with the following content:
<?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Foggyline_Helpdesk', __DIR__ );
We then define the app/code/Foggyline/Helpdesk/etc/module.xml
file with the following content:
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module /etc/module.xsd"> <module name="Foggyline_Helpdesk" setup_version="1.0.0"> <sequence> <module name="Magento_Store"/> <module name="Magento_Customer"/> </sequence> </module> </config>
Looking at the preceding file, if we strip away the ...
Get Magento 2 Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.