PHP code example of qoliber / m2-mediacleaner

1. Go to this page and download the library: Download qoliber/m2-mediacleaner 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/ */

    

qoliber / m2-mediacleaner example snippets


php bin/magento setup:upgrade
xml
    <type name="Qoliber\MediaCleaner\Api\CleanerProviderInterface">
        <arguments>
            <argument name="cleaners" xsi:type="array">
                <item name="custom_cleaner"
                      xsi:type="object">Foo\Bar\Cleaner\CustomCleaner</item>
            </argument>
        </arguments>
    </type>