Action/BuildAction.php
protected function dumpTableRegistry(CLImate $climate, $bundle)
    {
        $mapDirPath = Bundles::getPath($bundle) . DS . 'Domain' . DS . 'map';
        $tableRegistryConfigFile = $mapDirPath . DS . 'table_registry_config.php';

        if (!is_dir($mapDirPath)) {
            mkdir($mapDirPath, 0777, true);
        }

        if (is_array($this->tableRegistryCode[$bundle])) {
            file_put_contents(
                $tableRegistryConfigFile,
                '<?php' . "\n\n" . implode("\n\n", $this->tableRegistryCode[$bundle])
            );
        }
    }
protected function dumpTableRegistry(CLImate $climate, $bundle)
    {
        $mapDirPath = Bundles::getPath($bundle) . DS . 'Domain' . DS . 'map';
        $tableRegistryConfigFile = $mapDirPath . DS . 'table_registry_config.php';

        if (!is_dir($mapDirPath)) {
            mkdir($mapDirPath, 0777, true);
        }

        if (is_array($this->tableRegistryCode[$bundle])) {
            file_put_contents(
                $tableRegistryConfigFile,
                '<?php' . "\n\n" . implode("\n\n", $this->tableRegistryCode[$bundle])
            );
        }
    }
protected function dumpTableRegistry ( CLImate $ climate , $ bundle ) { $ mapDirPath = Bundles :: getPath ( $ bundle ) . DS . 'Domain' . DS . 'map' ; $ tableRegistryConfigFile = $ mapDirPath . DS . 'table_registry_config.php' ; if ( ! is_dir ( $ mapDirPath ) ) { mkdir ( $ mapDirPath , 0777 , true ) ; } if ( is_array ( $ this -> tableRegistryCode [ $ bundle ] ) ) { file_put_contents ( $ tableRegistryConfigFile , '<?php' . "\n\n" . implode ( "\n\n" , $ this -> tableRegistryCode [ $ bundle ] ) ) ; } }
Dump table registry

@param CLImate $climate
@param string  $bundle

@throws \Rad\Core\Exception\MissingBundleException
Dump table registry