Alexander Schäferdiek
74a2bae39f
- Bugfixes - Add possibility to determine LogLevel and logger name in environment
17 lines
No EOL
661 B
PHP
17 lines
No EOL
661 B
PHP
<?php
|
|
|
|
use \Phpmig\Adapter;
|
|
|
|
$container = new ArrayObject();
|
|
$container['env'] = BootstrapHelper::bootEnvironment();
|
|
$container['db'] = BootstrapHelper::bootDatabase();
|
|
|
|
$container['phpmig.adapter'] = new Phpmig\Adapter\PDO\Sql($container['db']->getConnection()->getPdo(), 'migrations');
|
|
|
|
$container['phpmig.migrations_template_path'] = __DIR__ . DIRECTORY_SEPARATOR . '..'. DIRECTORY_SEPARATOR .'data'. DIRECTORY_SEPARATOR .'phpmig_template.php';
|
|
$container['phpmig.migrations_path'] = __DIR__ . DIRECTORY_SEPARATOR . '..'. DIRECTORY_SEPARATOR .'data'. DIRECTORY_SEPARATOR .'migrations';
|
|
|
|
|
|
$container['schema'] = $container['db']->schema();
|
|
|
|
return $container; |