PHP code example of soy-php / doctrine-migrations-task
1. Go to this page and download the library: Download soy-php/doctrine-migrations-task 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/ */
soy-php / doctrine-migrations-task example snippets
$recipe = new \Soy\Recipe();
$recipe->component('default', function (\Soy\DoctrineMigrations\MigrateTask $migrateTask) {
$migrateTask
->setBinary('./vendor/bin/doctrine-migrations')
->setCommandNamespace('migrations:')
->setConfiguration('migrations.yml')
->setDbConfiguration('db.php')
->setVerbose(true)
->run();
});
return $recipe;
$recipe = new \Soy\Recipe();
$recipe->component('default', function (\Soy\DoctrineMigrations\MigrateTask $migrateTask) {
$migrateTask
->setBinary('./bin/console')
->setCommandNamespace('doctrine:migrations:')
->addArgument('-e dev')
->setVerbose(true)
->run();
});
return $recipe;