Created
July 15, 2013 14:27
-
-
Save seiffert/6000378 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \Phpmig\Adapter; | |
use Sensio\Bridge\Phpmig\ContainerAdapter; | |
require_once __DIR__ . '/autoload.php'; | |
require_once __DIR__ . '/AppKernel.php'; | |
$kernel = new AppKernel('dev', true); | |
$kernel->boot(); | |
$container = new ContainerAdapter($kernel->getContainer()); | |
$container['phpmig.adapter'] = new Adapter\File\Flat(__DIR__ . DIRECTORY_SEPARATOR . 'migrations/.migrations.log'); | |
$container['phpmig.migrations_path'] = __DIR__ . DIRECTORY_SEPARATOR . 'migrations'; | |
return $container; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment