privates['swiftmailer.command.debug'] = $instance = new \Symfony\Bundle\SwiftmailerBundle\Command\DebugCommand(); $instance->setName('debug:swiftmailer'); return $instance;