PHP code example of fontis / customergroupaccess-mage2
1. Go to this page and download the library: Download fontis/customergroupaccess-mage2 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fontis / customergroupaccess-mage2 example snippets
$accessCheck = $this->accessCheckFactory->create(array("storeId" => $this->getStore()));
xml
<type name="MyNamespace\MyModule\Model\MyFeature\MyModel">
<arguments>
<argument name="accessCheckFactory" xsi:type="object">myModuleMyFeatureCustomerGroupAccessCheckFactory</argument>
</arguments>
</type>