First commit
This commit is contained in:
12
scripts/install.php
Normal file
12
scripts/install.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$f3 = require __DIR__ . '/bootstrap.php';
|
||||
$db = $f3->get('DB');
|
||||
|
||||
User::bootstrap($db);
|
||||
Post::bootstrap($db);
|
||||
Media::bootstrap($db);
|
||||
|
||||
fwrite(STDOUT, 'Base initialisée : ' . app_db_path() . "\n");
|
||||
Reference in New Issue
Block a user