Skip to content

Commit

Permalink
Merge pull request #67 from wagnert/master
Browse files Browse the repository at this point in the history
Add Swift Mailer configuration for logger and MissingOptionValuesPlugin
  • Loading branch information
wagnert authored Mar 24, 2017
2 parents d8a67a2 + 1080714 commit b3c47cc
Show file tree
Hide file tree
Showing 10 changed files with 314 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.buildpath
.project
.settings
.DS_Store
composer.lock
/dist
/target
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Version 1.0.0-alpha56

## Bugfixes

* None

## Features

* Add Swift Mailer configuration for logger and MissingOptionValuesPlugin

# Version 1.0.0-alpha55

## Bugfixes
Expand Down
2 changes: 1 addition & 1 deletion RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function runCs()
// run the code sniffer
$this->_exec(
sprintf(
'%s/bin/phpcs -n --extensions=php --standard=psr2 --report-full --report-checkstyle=%s/reports/phpcs.xml %s',
'%s/bin/phpcs -n --report-full --extensions=php --standard=phpcs.xml --report-checkstyle=%s/reports/phpcs.xml %s',
$this->properties['vendor.dir'],
$this->properties['target.dir'],
$this->properties['src.dir']
Expand Down
Binary file removed projects/sample-data/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,39 @@
"password": "appserver.i0"
}
],
"loggers": [
{
"name": "mail",
"channel-name" : "logger/mail",
"type" : "Monolog\\Logger",
"handlers" : [
{
"type": "Monolog\\Handler\\SwiftMailerHandler",
"params" : [
{
"log-level" : "error",
"bubble" : false
}
],
"swift-mailer" : {
"factory" : "TechDivision\\Import\\Utils\\SwiftMailer\\SendmailTransportMailerFactory",
"mailer-factory" : "\\Swift_Mailer",
"params" : [
{
"to" : "[email protected]",
"from" : "[email protected]",
"subject": "Importer Error",
"content-type" : "text/plain"
}
],
"transport" : {
"transport-factory" : "\\Swift_SendmailTransport"
}
}
}
]
}
],
"operations" : [
{
"name" : "delete",
Expand Down
67 changes: 65 additions & 2 deletions projects/sample-data/ce/212/conf/products/techdivision-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,39 @@
"password": "appserver.i0"
}
],
"loggers": [
{
"name": "mail",
"channel-name" : "logger/mail",
"type" : "Monolog\\Logger",
"handlers" : [
{
"type": "Monolog\\Handler\\SwiftMailerHandler",
"params" : [
{
"log-level" : "error",
"bubble" : false
}
],
"swift-mailer" : {
"factory" : "TechDivision\\Import\\Utils\\SwiftMailer\\SendmailTransportMailerFactory",
"mailer-factory" : "\\Swift_Mailer",
"params" : [
{
"to" : "[email protected]",
"from" : "[email protected]",
"subject": "Importer Error",
"content-type" : "text/plain"
}
],
"transport" : {
"transport-factory" : "\\Swift_SendmailTransport"
}
}
}
]
}
],
"operations" : [
{
"name" : "delete",
Expand Down Expand Up @@ -188,7 +221,22 @@
]
},
{
"class-name": "TechDivision\\Import\\Plugins\\MissingOptionValuesPlugin"
"class-name": "TechDivision\\Import\\Plugins\\MissingOptionValuesPlugin",
"swift-mailer" : {
"factory" : "TechDivision\\Import\\Utils\\SwiftMailer\\SendmailTransportMailerFactory",
"mailer-factory" : "\\Swift_Mailer",
"params" : [
{
"to" : "[email protected]",
"from" : "[email protected]",
"subject": "Importer Error",
"content-type" : "text/plain"
}
],
"transport" : {
"transport-factory" : "\\Swift_SendmailTransport"
}
}
},
{
"class-name": "TechDivision\\Import\\Plugins\\ArchivePlugin"
Expand Down Expand Up @@ -323,7 +371,22 @@
]
},
{
"class-name": "TechDivision\\Import\\Plugins\\MissingOptionValuesPlugin"
"class-name": "TechDivision\\Import\\Plugins\\MissingOptionValuesPlugin",
"swift-mailer" : {
"factory" : "TechDivision\\Import\\Utils\\SwiftMailer\\SendmailTransportMailerFactory",
"mailer-factory" : "\\Swift_Mailer",
"params" : [
{
"to" : "[email protected]",
"from" : "[email protected]",
"subject": "Missing Option Values",
"content-type" : "text/plain"
}
],
"transport" : {
"transport-factory" : "\\Swift_SendmailTransport"
}
}
},
{
"class-name": "TechDivision\\Import\\Plugins\\ArchivePlugin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,39 @@
"password": "appserver.i0"
}
],
"loggers": [
{
"name": "mail",
"channel-name" : "logger/mail",
"type" : "Monolog\\Logger",
"handlers" : [
{
"type": "Monolog\\Handler\\SwiftMailerHandler",
"params" : [
{
"log-level" : "error",
"bubble" : false
}
],
"swift-mailer" : {
"factory" : "TechDivision\\Import\\Utils\\SwiftMailer\\SendmailTransportMailerFactory",
"mailer-factory" : "\\Swift_Mailer",
"params" : [
{
"to" : "[email protected]",
"from" : "[email protected]",
"subject": "Importer Error",
"content-type" : "text/plain"
}
],
"transport" : {
"transport-factory" : "\\Swift_SendmailTransport"
}
}
}
]
}
],
"operations" : [
{
"name" : "delete",
Expand Down
69 changes: 69 additions & 0 deletions projects/sample-data/ce/215/conf/products/techdivision-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,39 @@
"password": "appserver.i0"
}
],
"loggers": [
{
"name": "mail",
"channel-name" : "logger/mail",
"type" : "Monolog\\Logger",
"handlers" : [
{
"type": "Monolog\\Handler\\SwiftMailerHandler",
"params" : [
{
"log-level" : "error",
"bubble" : false
}
],
"swift-mailer" : {
"factory" : "TechDivision\\Import\\Utils\\SwiftMailer\\SendmailTransportMailerFactory",
"mailer-factory" : "\\Swift_Mailer",
"params" : [
{
"to" : "[email protected]",
"from" : "[email protected]",
"subject": "Importer Error",
"content-type" : "text/plain"
}
],
"transport" : {
"transport-factory" : "\\Swift_SendmailTransport"
}
}
}
]
}
],
"operations" : [
{
"name" : "delete",
Expand Down Expand Up @@ -187,6 +220,24 @@
}
]
},
{
"class-name": "TechDivision\\Import\\Plugins\\MissingOptionValuesPlugin",
"swift-mailer" : {
"factory" : "TechDivision\\Import\\Utils\\SwiftMailer\\SendmailTransportMailerFactory",
"mailer-factory" : "\\Swift_Mailer",
"params" : [
{
"to" : "[email protected]",
"from" : "[email protected]",
"subject": "Importer Error",
"content-type" : "text/plain"
}
],
"transport" : {
"transport-factory" : "\\Swift_SendmailTransport"
}
}
},
{
"class-name": "TechDivision\\Import\\Plugins\\ArchivePlugin"
}
Expand Down Expand Up @@ -319,6 +370,24 @@
}
]
},
{
"class-name": "TechDivision\\Import\\Plugins\\MissingOptionValuesPlugin",
"swift-mailer" : {
"factory" : "TechDivision\\Import\\Utils\\SwiftMailer\\SendmailTransportMailerFactory",
"mailer-factory" : "\\Swift_Mailer",
"params" : [
{
"to" : "[email protected]",
"from" : "[email protected]",
"subject": "Missing Option Values",
"content-type" : "text/plain"
}
],
"transport" : {
"transport-factory" : "\\Swift_SendmailTransport"
}
}
},
{
"class-name": "TechDivision\\Import\\Plugins\\ArchivePlugin"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,39 @@
"password": "appserver.i0"
}
],
"loggers": [
{
"name": "mail",
"channel-name" : "logger/mail",
"type" : "Monolog\\Logger",
"handlers" : [
{
"type": "Monolog\\Handler\\SwiftMailerHandler",
"params" : [
{
"log-level" : "error",
"bubble" : false
}
],
"swift-mailer" : {
"factory" : "TechDivision\\Import\\Utils\\SwiftMailer\\SendmailTransportMailerFactory",
"mailer-factory" : "\\Swift_Mailer",
"params" : [
{
"to" : "[email protected]",
"from" : "[email protected]",
"subject": "Importer Error",
"content-type" : "text/plain"
}
],
"transport" : {
"transport-factory" : "\\Swift_SendmailTransport"
}
}
}
]
}
],
"operations" : [
{
"name" : "delete",
Expand Down
Loading

0 comments on commit b3c47cc

Please sign in to comment.