src/Console/DirectoryCreator.php 1 location
|
@@ 22-34 (lines=13) @@
|
| 19 |
|
/** |
| 20 |
|
* Create cosnole directory structure. |
| 21 |
|
*/ |
| 22 |
|
protected function createAllDirectories() |
| 23 |
|
{ |
| 24 |
|
$commandsDir = $this->config->getCommandsDirectory(); |
| 25 |
|
|
| 26 |
|
$created = $this->makeDirectoryStructure([ |
| 27 |
|
'console' => $this->config->getConsoleDirectory(), |
| 28 |
|
'commands' => $commandsDir, |
| 29 |
|
]); |
| 30 |
|
|
| 31 |
|
foreach ($created as $key => $value) { |
| 32 |
|
$this->output->writeInfo("Created {$key} directory."); |
| 33 |
|
} |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
/** |
| 37 |
|
* Create the kernel file. |
src/DB/Seeders/SeederCreator.php 1 location
|
@@ 39-51 (lines=13) @@
|
| 36 |
|
/** |
| 37 |
|
* Create necessary directory structure. |
| 38 |
|
*/ |
| 39 |
|
protected function createDirectories() |
| 40 |
|
{ |
| 41 |
|
$seedDir = $this->config->getSeedDirectory(); |
| 42 |
|
|
| 43 |
|
$created = $this->makeDirectoryStructure([ |
| 44 |
|
'database' => $this->config->getDatabaseDirectory(), |
| 45 |
|
'seeds' => $seedDir, |
| 46 |
|
]); |
| 47 |
|
|
| 48 |
|
foreach ($created as $key => $value) { |
| 49 |
|
$this->output->writeInfo("Created {$key} directory."); |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
/** |
| 54 |
|
* Get the stub and insert the given class name. |
src/Migrations/FileDate/FileDateMigrationCreator.php 1 location
|
@@ 55-65 (lines=11) @@
|
| 52 |
|
/** |
| 53 |
|
* Create necessary directories for migrations. |
| 54 |
|
*/ |
| 55 |
|
protected function createDirectories() |
| 56 |
|
{ |
| 57 |
|
$created = $this->makeDirectoryStructure([ |
| 58 |
|
'database' => $this->config->getDatabaseDirectory(), |
| 59 |
|
'migrations' => $this->config->getMigrationDirectory(), |
| 60 |
|
]); |
| 61 |
|
|
| 62 |
|
foreach ($created as $key => $value) { |
| 63 |
|
$this->output->writeInfo("Created {$key} directory."); |
| 64 |
|
} |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
/** |
| 68 |
|
* Get stub with appropriate class name/table name. |