From 1e48051fdcb7f248c5b2b3cdbb98d58b58134fa8 Mon Sep 17 00:00:00 2001 From: Sascha Date: Wed, 20 Jun 2018 10:37:08 +0200 Subject: [PATCH 1/3] moved YiiMailer to src --- YiiMailer.php => src/YiiMailer.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename YiiMailer.php => src/YiiMailer.php (100%) diff --git a/YiiMailer.php b/src/YiiMailer.php similarity index 100% rename from YiiMailer.php rename to src/YiiMailer.php From 5b1ae9896548a418adeaf0049c4e937cf88f088f Mon Sep 17 00:00:00 2001 From: Sascha Date: Wed, 20 Jun 2018 10:37:16 +0200 Subject: [PATCH 2/3] added gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..331c58f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +vendor \ No newline at end of file From c602aaf7a7e98dcf102cd306a21e66e2b284df41 Mon Sep 17 00:00:00 2001 From: Sascha Date: Wed, 20 Jun 2018 10:38:06 +0200 Subject: [PATCH 3/3] added autoloading via classmap --- composer.json | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 2184cf0..9d21b2e 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,14 @@ { - "name": "vernes/yiimailer", - "description": "Yii extension for sending emails with layouts using PHPMailer", - "type": "yii-extension", - "require": { - "php": ">=5.5.0", - "phpmailer/phpmailer": "^6.0" - } + "name": "vernes/yiimailer", + "description": "Yii extension for sending emails with layouts using PHPMailer", + "type": "yii-extension", + "require": { + "php": ">=5.5.0", + "phpmailer/phpmailer": "^6.0" + }, + "autoload": { + "classmap": [ + "src" + ] + } }