PHP code example of rodrigonull / silex-doctrine-migrations-provider
1. Go to this page and download the library: Download rodrigonull/silex-doctrine-migrations-provider 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/ */
rodrigonull / silex-doctrine-migrations-provider example snippets
$console = new \Symfony\Component\Console\Application();
$app->register(
new \Null\Silex\Provider\DoctrineMigrationsProvider($console),
array(
'migrations.directory' => __DIR__ . '/../path/to/migrations',
'migrations.name' => 'Acme Migrations',
'migrations.namespace' => 'Acme\Migrations',
'migrations.table_name' => 'acme_migrations',
)
);
$app->boot();
$console->run();