1
0
mirror of https://github.com/flarum/core.git synced 2025-08-18 14:22:02 +02:00

Use dependency injection in migrations

This commit is contained in:
Franz Liedke
2015-08-12 01:29:40 +02:00
parent 9762e20be1
commit 7b07e02e75
14 changed files with 57 additions and 40 deletions

16
src/Install/Migration.php Normal file
View File

@@ -0,0 +1,16 @@
<?php namespace Flarum\Install;
use Illuminate\Database\Schema\Builder;
abstract class Migration
{
/**
* @var Builder
*/
protected $schema;
public function __construct(Builder $builder)
{
$this->schema = $builder;
}
}