Download the PHP package dmc/m2-module-base without Composer
On this page you can find all versions of the php package dmc/m2-module-base. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dmc/m2-module-base
More information about dmc/m2-module-base
Files in dmc/m2-module-base
Download dmc/m2-module-base
More information about dmc/m2-module-base
Files in dmc/m2-module-base
Vendor dmc
Package m2-module-base
Short Description Base module for otehr DMC extensions
License OSL-3.0
Homepage https://github.com/digitalmanufaktur
Package m2-module-base
Short Description Base module for otehr DMC extensions
License OSL-3.0
Homepage https://github.com/digitalmanufaktur
Keywords magento2
Please rate this library. Is it a good library?
Informations about the package m2-module-base
DMC Base
This is a base Modul for DMC changes
Facts
- version: 1.0.0
- extension key: DMC_Base
Features
- DMC log class
- Backend configuration
- Helper to get storeConfig
Requirements
- None
Compatibility
- Magento >= 2.0
Installation Instructions "Manual" Installation
- create a directory
app/code/DMC/Base
- extract all files of the module there
-
enable the module with
bin/magento module:enable DMC_Base bin/magento setup:upgrade
Uninstallation
- remove the directory
app/code/DMC/Base
Usage
-
Logger
<?php namespace YourNamespace\YourModule\Model; class MyClass { /** * @var \DMC\Base\Logger\Logger */ protected $logger; /** * Constructor * @param \DMC\Base\Logger\Logger $logger */ public function __construct( \DMC\Base\Logger\Logger $logger ) { $this->logger = $logger; } protected function someMethod() { $this->logger->info('My message'); } }
-
Helper
get config in phtml:
$this->helper('DMC\Base\Helper\Data')->getConfigByPath('section/group/field');
get config in block and helper:
$this->objectManager->create('DMC\Base\Helper\Data')->getConfigByPath('section/group/field');
Authors
Licence
All versions of m2-module-base with dependencies
PHP Build Version
Package Version
Requires
php Version
7.0.2|7.0.4|~7.0.6|~7.1.0
magento/framework Version >=101.0.1
magento/magento-composer-installer Version *
magento/framework Version >=101.0.1
magento/magento-composer-installer Version *
The package dmc/m2-module-base contains the following files
Loading the files please wait ....