Completed
Push — master ( ec9ebd...be73c8 )
by juan
02:23
created

console.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
require __DIR__ . '/vendor/autoload.php';
4
5
date_default_timezone_set('UTC');
6
7
$applicationService = new \Juanber84\Services\ApplicationService();
8
$gitHubService = new \Juanber84\Services\GitHubService();
9
$downloadService = new \Juanber84\Services\DownloadService();
10
$databaseService = new \Juanber84\Services\DatabaseService();
11
12
$console = new \Juanber84\Console\Application($applicationService, $gitHubService);
13
$console->addCommands(array(
14
    new \Juanber84\Console\Command\ShowProjectsCommand(
15
        $databaseService
16
    ),
17
    new \Juanber84\Console\Command\AddProjectsCommand(),
18
    new \Juanber84\Console\Command\RemoveProjectsCommand(),
0 ignored issues
show
The call to RemoveProjectsCommand::__construct() misses a required argument $databaseService.

This check looks for function calls that miss required arguments.

Loading history...
19
    new \Juanber84\Console\Command\DeployProjectsCommand(),
20
    new \Juanber84\Console\Command\SelfUpdateCommand(
21
        $applicationService, $gitHubService, $downloadService
22
    )
23
));
24
$console->run();
25