src/console/DoController.php
public function fetchIconsList()
    {
        $dir = Yii::getAlias('@hiqdev/paymenticons/assets/png/xs');
        $files = scandir($dir);
        $list = [];
        foreach ($files as $file) {
            if ($file[0] === '.') {
                continue;
            }
            $name = pathinfo($file)['filename'];
            $list["$dir/$file"] = $name;
        }

        return $list;
    }
public function fetchIconsList()
    {
        $dir = Yii::getAlias('@hiqdev/paymenticons/assets/png/xs');
        $files = scandir($dir);
        $list = [];
        foreach ($files as $file) {
            if ($file[0] === '.') {
                continue;
            }
            $name = pathinfo($file)['filename'];
            $list["$dir/$file"] = $name;
        }

        return $list;
    }
public function fetchIconsList ( ) { $ dir = Yii :: getAlias ( '@hiqdev/paymenticons/assets/png/xs' ) ; $ files = scandir ( $ dir ) ; $ list = [ ] ; foreach ( $ files as $ file ) { if ( $ file [ 0 ] === '.' ) { continue ; } $ name = pathinfo ( $ file ) [ 'filename' ] ; $ list [ "$dir/$file" ] = $ name ; } return $ list ; }
Scans directory to prepare list of icons.
@return array
Scans directory to prepare list of icons .