Conditions | 2 |
Paths | 2 |
Total Lines | 26 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function fire() |
||
30 | { |
||
31 | $database = $this->argument('database'); |
||
32 | |||
33 | // Display some helpfull info |
||
34 | if (empty($database)) { |
||
35 | $this->comment("Preparing the seeder class for database {$this->getDatabaseName()}"); |
||
36 | } else { |
||
37 | $this->comment("Preparing the seeder class for database {$database}"); |
||
38 | } |
||
39 | |||
40 | // Grab the options |
||
41 | $this->fireAction('seed', $database); |
||
42 | |||
43 | // Symfony style block messages |
||
44 | $formatter = $this->getHelperSet()->get('formatter'); |
||
45 | $filename = $this->getFilename(); |
||
46 | |||
47 | $errorMessages = array( |
||
48 | 'Success!', |
||
49 | "Database seed class generated in: {$filename}", |
||
50 | ); |
||
51 | |||
52 | $formattedBlock = $formatter->formatBlock($errorMessages, 'info', true); |
||
53 | $this->line($formattedBlock); |
||
54 | } |
||
55 | |||
67 |