title: After upgrading symfony from 3.4 to 4.4(without flex) getting service or alias has been removed or inlined when the container was compiled
body: <p>After updating symfony from 3.4 to 4.4(without flex) i am getting this error The &quot;tactician.commandbus&quot; service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.</p>
  <p>I am injecting depnedeicies to controller using jms/di-extra-bundle</p>
  <pre><code>class MngmtController extends AbstractFOSRestController
  {
     /**
       * @var CommandBus
       */
      private $commandBus;
  
      /**
       * @var CommandBus
       */
      private $mngmtCommandBus;
  
      /**
       * @var LoggerInterface
       */
      private $logger;
  
      /**
       * @var MngmtService
       */
      private $mngmtService;
  
      /**
       * @param ContainerInterface $container
       * @param CommandBus         $commandBus
       * @param CommandBus         $mngmtCommandBus
       * @param LoggerInterface    $logger
       * @param MngmtService       $mngmtService
       *
       * @DI\InjectParams({
       *     &quot;container&quot; = @DI\Inject(&quot;service_container&quot;),
       *     &quot;commandBus&quot; = @DI\Inject(&quot;tactician.commandbus&quot;),
       *     &quot;mngmtCommandBus&quot; = @DI\Inject(&quot;tactician.commandbus.mngmt&quot;),
       *     &quot;logger&quot; = @DI\Inject(&quot;monolog.logger&quot;),
       *     &quot;mngmtService&quot; = @DI\Inject(&quot;app.services.mngmt_service&quot;),
       * })
       */
      public function __construct(
          ContainerInterface $container,
          CommandBus $commandBus,
          CommandBus $mngmtCommandBus,
          LoggerInterface $logger
          MngmtService $mngmtService,
      ) {
          $this-&gt;container = $container;
          $this-&gt;commandBus = $commandBus;
          $this-&gt;mngmtCommandBus = $mngmtCommandBus;
          $this-&gt;logger = $logger;
          $this-&gt;mngmtService = $mngmtService;
      }
  </code></pre>
  <p>I have tried adding this in services.yml, but didn't help</p>
  <pre><code>   _defaults:
          public: true
     
      League\Tactician\CommandBus:
          alias: 'tactician.commandbus'
          public: true
      
      Psr\Log\LoggerInterface:
          alias: 'monolog.logger'
          public: true
  
  </code></pre>
  <p>I am following older directory structure not updated to sf4/flex directory structure, Please help me with the above error</p>