-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsole.php
More file actions
22 lines (18 loc) · 891 Bytes
/
console.php
File metadata and controls
22 lines (18 loc) · 891 Bytes
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';
date_default_timezone_set('UTC');
$applicationService = new \Juanber84\Services\ApplicationService();
$gitHubService = new \Juanber84\Services\GitHubService();
$downloadService = new \Juanber84\Services\DownloadService();
$databaseService = new \Juanber84\Services\DatabaseService();
$console = new \Juanber84\Console\Application($applicationService, $gitHubService);
$console->addCommands(array(
new \Juanber84\Console\Command\ShowProjectsCommand($databaseService),
new \Juanber84\Console\Command\AddProjectsCommand($databaseService),
new \Juanber84\Console\Command\RemoveProjectsCommand($databaseService),
new \Juanber84\Console\Command\DeployProjectsCommand($databaseService),
new \Juanber84\Console\Command\SelfUpdateCommand(
$applicationService, $gitHubService, $downloadService
)
));
$console->run();