PHP code example of andreo / eventsauce-migration-generator
1. Go to this page and download the library: Download andreo/eventsauce-migration-generator 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/ */
andreo / eventsauce-migration-generator example snippets
use Andreo\EventSauce\Doctrine\Migration\Command\GenerateDoctrineMigrationForEventSauceCommand;
new GenerateDoctrineMigrationForEventSauceCommand(
dependencyFactory: $dependencyFactory, // instance of Doctrine\Migrations\DependencyFactory
);
use Andreo\EventSauce\Doctrine\Migration\Command\GenerateDoctrineMigrationForEventSauceCommand;
use Andreo\EventSauce\Doctrine\Migration\Schema\TableNameSuffix;
new GenerateDoctrineMigrationForEventSauceCommand(
dependencyFactory: $dependencyFactory,
tableNameSuffix: new TableNameSuffix(event: 'message_store')
);