1 | <?php |
||
9 | class DirectoryCreator |
||
10 | { |
||
11 | use Filesystem, Loggable; |
||
12 | |||
13 | /** |
||
14 | * Yarak config. |
||
15 | * |
||
16 | * @var Config |
||
17 | */ |
||
18 | protected $config; |
||
19 | |||
20 | /** |
||
21 | * Construct. |
||
22 | * |
||
23 | * @param Config $config |
||
24 | */ |
||
25 | public function __construct(Config $config) |
||
29 | |||
30 | /** |
||
31 | * Create all the directories and files necessary for Yarak DB functions. |
||
32 | */ |
||
33 | public function create() |
||
41 | |||
42 | /** |
||
43 | * Create all needed directories. |
||
44 | */ |
||
45 | protected function createAllDirectories() |
||
53 | |||
54 | /** |
||
55 | * Create factory file stub. |
||
56 | */ |
||
57 | protected function createFactoriesFile() |
||
68 | |||
69 | /** |
||
70 | * Create seeder file stub. |
||
71 | */ |
||
72 | protected function createSeederFile() |
||
83 | } |
||
84 |