-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartisan
22 lines (16 loc) · 790 Bytes
/
artisan
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
require __DIR__.'/vendor/autoload.php';
use Core\Console\Commands\{GetUpdates, Send, Serve};
use Core\Console\Commands\{Responses};
use Core\Console\Commands\Database\{DatabaseInfo, Driver, Migration, Params, Seeder, Table, Tables, Version};
use Core\Console\Commands\Make\{MakeInteraction, MakeMigration, MakeModel, MakeTrigger};
use Dotenv\Dotenv;
use Symfony\Component\Console\Application;
Dotenv::createUnsafeImmutable(__DIR__)->load();
$application = new Application();
$application->addCommands([
new Tables, new Params, new Driver, new Version, new Table, new Table, new Migration, new Seeder, new DatabaseInfo,
new MakeInteraction, new MakeTrigger, new MakeModel, new MakeMigration,
new Serve, new GetUpdates, new Send, new Responses
]);
$application->run();