protected function generateProductionConfig($productionDir)
    {
        if (file_exists($productionDir))
        {
            $overwrite = $this->myCommand->confirm(
                'Overwrite the existing production config files?', false
            );

            if ( ! $overwrite)
            {
                return;
            }
        }
        else
        {
            mkdir($productionDir);
        }

        $configTemplatesPath = __DIR__.'/templates/config';
        $configFiles = [
            'cache.php',
            'mail.php',
            'queue.php',
            'session.php'
        ];

        foreach ($configFiles as $filename)
        {
            $srcPath = "{$configTemplatesPath}/{$filename}";
            $destPath = "{$productionDir}/{$filename}";
            copy($srcPath, $destPath);
        }

        $this->myCommand->info('Generated production config files.');
    }