Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector::__construct PHP Method

__construct() public method

We don't inject the message logger and mailer here to avoid the creation of these objects when no emails are sent.
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface
    public function __construct(ContainerInterface $container)
    {
        $this->container = $container;
    }