nuxia/mail-storage-bundle

Bundle to store your sent mail

Installs: 6 351

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 6

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2016-09-09 16:24 UTC

This package is not auto-updated.

Last update: 2024-04-13 13:57:25 UTC


README

SensioLabsInsight

Bundle to store your sent mail

Installation:

Step 1 : composer

composer require nuxia/mail-storage-bundle: "dev-master"

Step 2 : MailEntry entity

# MailEntry.orm.yml
MyApp\Entity\MailEntry:
    type: "entity"
    table: "your__mail_storage_table"
    id:
        id:
            type: "string"
            length: "32"
            generator:
                strategy: "NONE"
    indexes:
        mle_id_i:
            columns: "id"
        mle_object_i:
            columns: "object"
        mle_object_id_i:
            columns: "object_id"
        mle_reference_i:
            columns: "reference"
        mle_language_i:
            columns: "language"
        mle_subject_i:
            columns: "subject"
        mle_status_i:
            columns: "status"
        mle_created_att_i:
            columns: "created_at"
        mle_sent_at_i:
            columns: "sent_at"
<?php

//MyApp\Entity\MailEntry.php
class MailEntry extends \Nuxia\MailStorageBundle\Entity\AbstractMailEntry {
    //Some application logic
}

Override the container parameter nuxia.mail_storage.mail_entry.class using à compiler pass or a service file.

# myapp/service.yml
parameters:
    nuxia.mail_storage.mail_entry.class: MyApp\Entity\MailEntry