Guest User

Untitled

a guest
Jan 19th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. MagentoFrameworkComponentComponentRegistrar::register(
  2. MagentoFrameworkComponentComponentRegistrar::MODULE,
  3. 'Vendor_ModuleName',
  4. __DIR__
  5. );
  6.  
  7. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
  8. <module name="Vendor_ModuleName" setup_version="1.0.0" />
  9. </config>
  10.  
  11. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12. xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  13. <preference for="ThirdPartyVendorThirdpartyModuleBlockFile.php" type="VendorModuleNameBlockFile.php"/>
  14. </config>
  15.  
  16. namespace VendorModuleBlock;
  17. use ThirdPartyVendorThirdpartyModuleBlockFile as ThirdPartyFile;
  18.  
  19. class File extends ThirdPartyFile
  20. {
  21. ...........
  22. ...........
  23. }
  24.  
  25. bin/magento setup:di:compile
  26. bin/magento c:f
Add Comment
Please, Sign In to add comment