PHP code example of towa / spryker-db-dump

1. Go to this page and download the library: Download towa/spryker-db-dump library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

towa / spryker-db-dump example snippets


$config[KernelConstants::CORE_NAMESPACES] = [
    ...
    'Towa',
];

class ConsoleDependencyProvider extends SprykerConsoleDependencyProvider
{
    /**
     * @param \Spryker\Zed\Kernel\Container $container
     *
     * @return \Symfony\Component\Console\Command\Command[]
     */
    protected function getConsoleCommands(Container $container)
    {
        ...
        $commands[] = new DbDumpExportConsole();
        $commands[] = new DbDumpRestoreConsole();

        return $commands;
    }
    ...
}