How to setup SensioGeneratorBundle in SILEX
<p>For a few days I'm trying to setup SensioGeneratorBundle in Silex but no luck.</p>

<p>composer.json:</p>

<pre><code>...
"symfony/console": "^3.2",
"sensio/generator-bundle": "^3.1"
...
</code></pre>

<p>bin/console.php:</p>

<pre><code>require __DIR__.'/../vendor/autoload.php';

use Symfony\Component\Console\Application;

use Sensio\Bundle\GeneratorBundle\Command\GenerateDoctrineEntityCommand;

$application = new Application();
$application-&gt;add(new GenerateDoctrineEntityCommand());
$application-&gt;run();
</code></pre>

<p>When i run bin/console.php list, all i get is:</p>

<pre><code>Console Tool

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help  Displays help for a command
  list  Lists commands
</code></pre>

<p>There is no doctrine:generate:entity command.</p>

<p>Help anyone...</p>