Skip to content

Instantly share code, notes, and snippets.

@seiffert
Created July 15, 2013 14:27
Show Gist options
  • Save seiffert/6000378 to your computer and use it in GitHub Desktop.
Save seiffert/6000378 to your computer and use it in GitHub Desktop.
<?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