1 | <?php |
||
9 | class SeedRunner |
||
10 | { |
||
11 | /** |
||
12 | * If true, seeders have been required. |
||
13 | * |
||
14 | * @var bool |
||
15 | */ |
||
16 | protected $loaded = false; |
||
17 | |||
18 | /** |
||
19 | * Output strategy. |
||
20 | * |
||
21 | * @var Output |
||
22 | */ |
||
23 | protected $output; |
||
24 | |||
25 | /** |
||
26 | * Construct. |
||
27 | * |
||
28 | * @param Output $output |
||
29 | */ |
||
30 | public function __construct(Output $output) |
||
34 | |||
35 | /** |
||
36 | * Run the given seeder class. |
||
37 | * |
||
38 | * @param string $class |
||
39 | */ |
||
40 | public function run($class) |
||
54 | |||
55 | /** |
||
56 | * Load all the seeders in the seeders directory. |
||
57 | * |
||
58 | * @param Config $config |
||
59 | */ |
||
60 | protected function loadSeeders(Config $config) |
||
78 | |||
79 | /** |
||
80 | * Resolve the given seeder class. |
||
81 | * |
||
82 | * @param Config $config |
||
83 | * @param string $class |
||
84 | * |
||
85 | * @return Seeder |
||
86 | */ |
||
87 | protected function resolveSeeder(Config $config, $class) |
||
97 | } |
||
98 |