class Email

Supports commands related to the MailerService.

Constants

private LAYOUT_PATH

Path for email layouts.

private MAILER_PATH

Path for custom mailers.

private TEMPLATE_PATH

Path for email templates.

Methods

static void
layoutPath()

Creates directory for layout if it does not exist.

static string
layoutTemplate()

Template for E-mail layout.

static string
mailerTemplate(string $mailerName)

Template for custom mailer class.

static int
makeEmail(InputInterface $input)

Generates a new E-mail.

static int
makeLayout(InputInterface $input)

Generates a new E-mail layout.

static int
makeMailer(InputInterface $input)

Generates a new custom mailer class.

Details

at line 32
static void layoutPath()

Creates directory for layout if it does not exist.

Return Value

void

at line 43
static string layoutTemplate()

Template for E-mail layout.

Return Value

string

The layout template.

at line 63
static string mailerTemplate(string $mailerName)

Template for custom mailer class.

Parameters

string $mailerName

The name of the custom mailer class.

Return Value

string

The class' contents.

at line 111
static int makeEmail(InputInterface $input)

Generates a new E-mail.

Parameters

InputInterface $input

The Symfony InputInterface object.

Return Value

int

A value that indicates success, invalid, or failure.

at line 123
static int makeLayout(InputInterface $input)

Generates a new E-mail layout.

Parameters

InputInterface $input

The Symfony InputInterface object.

Return Value

int

A value that indicates success, invalid, or failure.

at line 135
static int makeMailer(InputInterface $input)

Generates a new custom mailer class.

Parameters

InputInterface $input

The Symfony InputInterface object.

Return Value

int

A value that indicates success, invalid, or failure.