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])
            );
        }
    }