public static function factory(ContainerInterface $container)
    {
        //@TODO: need to define transport to be use during ::send()
        $mailLog        = $container->get('Log/Core/Mail');
        $viewResolver   = $container->get('ViewResolver');
        $eventManager   = $container->get('EventManager');
        $moduleManager  = $container->get('ModuleManager');
        return new static($mailLog,$viewResolver,$eventManager,$moduleManager);
    }
public static function factory(ContainerInterface $container)
    {
        //@TODO: need to define transport to be use during ::send()
        $mailLog        = $container->get('Log/Core/Mail');
        $viewResolver   = $container->get('ViewResolver');
        $eventManager   = $container->get('EventManager');
        $moduleManager  = $container->get('ModuleManager');
        return new static($mailLog,$viewResolver,$eventManager,$moduleManager);
    }
@param ContainerInterface $container

@return static