Completed
Push — master ( 62f7cf...6f839c )
by Thiago
07:23 queued 04:42
created

cli-config.php (1 issue)

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
use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper;
3
use Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand;
4
use Doctrine\DBAL\Migrations\Tools\Console\Command\ExecuteCommand;
5
use Doctrine\DBAL\Migrations\Tools\Console\Command\GenerateCommand;
6
use Doctrine\DBAL\Migrations\Tools\Console\Command\MigrateCommand;
7
use Doctrine\DBAL\Migrations\Tools\Console\Command\StatusCommand;
8
use Doctrine\DBAL\Migrations\Tools\Console\Command\VersionCommand;
9
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
10
use UseAllFive\Command\LoadDataFixturesDoctrineCommand;
11
use Symfony\Component\Console\Helper\HelperSet;
12
use Symfony\Component\Console\Helper\DialogHelper;
13
14
$app = require __DIR__ . DIRECTORY_SEPARATOR . 'bootstrap.php';
15
16
$helperSet = new HelperSet(array(
17
    'db' => new ConnectionHelper($app['doctrine_orm.em']->getConnection()),
18
    'em' => new EntityManagerHelper($app['doctrine_orm.em']),
19
    'dialog' => new DialogHelper(),
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\Console\Helper\DialogHelper has been deprecated with message: since version 2.5, to be removed in 3.0. Use {@link \Symfony\Component\Console\Helper\QuestionHelper} instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
20
));
21
22
$commands = array(
23
    new LoadDataFixturesDoctrineCommand(),
24
    new DiffCommand(),
25
    new ExecuteCommand(),
26
    new GenerateCommand(),
27
    new MigrateCommand(),
28
    new StatusCommand(),
29
    new VersionCommand()
30
);
31
32
return $helperSet;
33