There are no commands defined in the "xxx" namespace
<p>I had big project on symfony3. In this project I have ProjectFrameworkBundle.</p>

<p>Project/FrameworkBundle/Console/Command.php</p>

<pre><code>abstract class Command extends ContainerAwareCommand
{
    //...

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        // do some regular staff
        $exitCode = $this-&gt;executeCommand($input, $output);
        // do some regular staff
    }

    abstract protected function executeCommand(InputInterface $input, OutputInterface $output);

    //...
}
</code></pre>

<p>If I'll make any command, extended from Command class, it will work ok (tested).</p>

<p>But, I have another bundle</p>

<p>Project/FrameworkQueue/Console/Command.php</p>

<pre><code>use Project\FrameworkBundle\Console\Command as BaseCommand;
abstract class Command extends BaseCommand
{
    // ...
    protected function executeCommand(InputInterface $input, OutputInterface $output)
    {
        // do some regular staff
        $exitCode = $this-&gt;executeJob($input, $output);
        // do some regular staff
    }

    abstract protected function executeJob(InputInterface $input, OutputInterface $output);

    // ...
}
</code></pre>

<p>So, when I change amy Command from <code>extends Project\FrameworkBundle\Console\Command</code> to <code>extends Project\QueueBundle\Console\Command</code> it hides from commands list. I tried to delete all staff from <code>executeCommand</code> in <code>QueueBundle</code>, but it not helped me. But if I making any mistake in php code in this command, I see exceptions.</p>

<p>What wrong? Where is my mistake or this is a bug. Where can I found symfony code that collecting and checking available commands?</p>

<p>Thanks!</p>

<p>P.S. Problem is not in file or class naming - I checked it many times. Of course when I changing parent class, I changing function names.</p>