src/Shell/Task/CsvModuleTask.php
private function bakeModuleConfig(string $name) : void
    {
        $options = [
            'path' => Configure::read('CsvMigrations.modules.path') . $name . DS . 'config' . DS,
            'ext' => 'json'
        ];

        $this->bake('config.dist', 'Module/config/config', [], '', $options);
        $this->bake('fields.dist', 'Module/config/fields', [], '', $options);
        $this->bake(
            'menus.dist',
            'Module/config/menus',
            ['label' => Inflector::humanize($name), 'url' => DS . Inflector::dasherize($name) . DS],
            '',
            $options
        );
    }
private function bakeModuleConfig(string $name) : void
    {
        $options = [
            'path' => Configure::read('CsvMigrations.modules.path') . $name . DS . 'config' . DS,
            'ext' => 'json'
        ];

        $this->bake('config.dist', 'Module/config/config', [], '', $options);
        $this->bake('fields.dist', 'Module/config/fields', [], '', $options);
        $this->bake(
            'menus.dist',
            'Module/config/menus',
            ['label' => Inflector::humanize($name), 'url' => DS . Inflector::dasherize($name) . DS],
            '',
            $options
        );
    }
private function bakeModuleConfig ( string $ name ) : void { $ options = [ 'path' => Configure :: read ( 'CsvMigrations.modules.path' ) . $ name . DS . 'config' . DS , 'ext' => 'json' ] ; $ this -> bake ( 'config.dist' , 'Module/config/config' , [ ] , '' , $ options ) ; $ this -> bake ( 'fields.dist' , 'Module/config/fields' , [ ] , '' , $ options ) ; $ this -> bake ( 'menus.dist' , 'Module/config/menus' , [ 'label' => Inflector :: humanize ( $ name ) , 'url' => DS . Inflector :: dasherize ( $ name ) . DS ] , '' , $ options ) ; }
Bake Module configuration files.

@param string $name Module name
@return void
Bake Module configuration files .