Paul Klimov
11 years ago
26 changed files with 1295 additions and 1219 deletions
@ -0,0 +1,32 @@
|
||||
The Yii framework is free software. It is released under the terms of |
||||
the following BSD License. |
||||
|
||||
Copyright © 2008-2013 by Yii Software LLC (http://www.yiisoft.com) |
||||
All rights reserved. |
||||
|
||||
Redistribution and use in source and binary forms, with or without |
||||
modification, are permitted provided that the following conditions |
||||
are met: |
||||
|
||||
* Redistributions of source code must retain the above copyright |
||||
notice, this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
notice, this list of conditions and the following disclaimer in |
||||
the documentation and/or other materials provided with the |
||||
distribution. |
||||
* Neither the name of Yii Software LLC nor the names of its |
||||
contributors may be used to endorse or promote products derived |
||||
from this software without specific prior written permission. |
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
||||
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
||||
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
||||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
||||
POSSIBILITY OF SUCH DAMAGE. |
@ -0,0 +1,58 @@
|
||||
Yii 2.0 Public Preview - SwiftMailer Mail Solution |
||||
================================================== |
||||
|
||||
Thank you for choosing Yii - a high-performance component-based PHP framework. |
||||
|
||||
If you are looking for a production-ready PHP framework, please use |
||||
[Yii v1.1](https://github.com/yiisoft/yii). |
||||
|
||||
Yii 2.0 is still under heavy development. We may make significant changes |
||||
without prior notices. **Yii 2.0 is not ready for production use yet.** |
||||
|
||||
[![Build Status](https://secure.travis-ci.org/yiisoft/yii2.png)](http://travis-ci.org/yiisoft/yii2) |
||||
|
||||
This is the yii2-swiftmailer extension. |
||||
|
||||
|
||||
Installation |
||||
------------ |
||||
|
||||
The preferred way to install this extension is through [composer](http://getcomposer.org/download/). |
||||
|
||||
Either run |
||||
``` |
||||
php composer.phar require yiisoft/yii2-swiftmailer "*" |
||||
``` |
||||
|
||||
or add |
||||
```json |
||||
"yiisoft/yii2-swiftmailer": "*" |
||||
``` |
||||
to the require section of your composer.json. |
||||
|
||||
|
||||
*Note: You might have to run `php composer.phar selfupdate`* |
||||
|
||||
|
||||
Usage & Documentation |
||||
--------------------- |
||||
|
||||
This extension has to be registered prior to usage. |
||||
To enable this view renderer add it to the $rendereres property of your view object. |
||||
|
||||
Example: |
||||
|
||||
```php |
||||
<?php |
||||
// config.php |
||||
return [ |
||||
//.... |
||||
'components' => [ |
||||
'mail' => [ |
||||
'class' => 'yii\swiftmailer\Mailer', |
||||
], |
||||
], |
||||
]; |
||||
``` |
||||
|
||||
For further instructions refer to the related section in the yii guide. |
@ -0,0 +1,28 @@
|
||||
{ |
||||
"name": "yiisoft/yii2-swiftmailer", |
||||
"description": "The SwiftMailer integration for the Yii framework", |
||||
"keywords": ["yii", "swift", "swiftmailer", "mail", "email", "mailer"], |
||||
"type": "yii2-extension", |
||||
"license": "BSD-3-Clause", |
||||
"support": { |
||||
"issues": "https://github.com/yiisoft/yii2/issues?state=open", |
||||
"forum": "http://www.yiiframework.com/forum/", |
||||
"wiki": "http://www.yiiframework.com/wiki/", |
||||
"irc": "irc://irc.freenode.net/yii", |
||||
"source": "https://github.com/yiisoft/yii2" |
||||
}, |
||||
"authors": [ |
||||
{ |
||||
"name": "Paul Klimov", |
||||
"email": "klimov.paul@gmail.com" |
||||
} |
||||
], |
||||
"minimum-stability": "dev", |
||||
"require": { |
||||
"yiisoft/yii2": "*", |
||||
"swiftmailer/swiftmailer": ">=v5.0" |
||||
}, |
||||
"autoload": { |
||||
"psr-0": { "yii\\swiftmailer\\": "" } |
||||
} |
||||
} |
@ -1,9 +0,0 @@
|
||||
<?php |
||||
/** |
||||
* This file attempts to register autoloader for the Swift library, assuming |
||||
* it is located under the 'vendor' path. |
||||
* |
||||
* @var $this \yii\email\swift\Mailer |
||||
*/ |
||||
$swiftMailerLibPath = Yii::getAlias('@vendor/swiftmailer/swiftmailer/lib'); |
||||
require_once $swiftMailerLibPath . '/swift_required.php'; |
@ -1,10 +1,10 @@
|
||||
<?php |
||||
|
||||
namespace yiiunit\framework\email\swift; |
||||
namespace yiiunit\extensions\swiftmailer; |
||||
|
||||
use Yii; |
||||
use yii\email\swift\Mailer; |
||||
use yii\email\swift\Message; |
||||
use yii\swiftmailer\Mailer; |
||||
use yii\swiftmailer\Message; |
||||
use yiiunit\TestCase; |
||||
|
||||
/** |
@ -1,10 +1,10 @@
|
||||
<?php |
||||
|
||||
namespace yiiunit\framework\email\swift; |
||||
namespace yiiunit\extensions\swiftmailer; |
||||
|
||||
use Yii; |
||||
use yii\email\swift\Mailer; |
||||
use yii\email\swift\Message; |
||||
use yii\swiftmailer\Mailer; |
||||
use yii\swiftmailer\Message; |
||||
use yiiunit\TestCase; |
||||
|
||||
/** |
@ -1,12 +1,12 @@
|
||||
<?php |
||||
|
||||
namespace yiiunit\framework\email; |
||||
namespace yiiunit\framework\mail; |
||||
|
||||
use Yii; |
||||
use yii\base\View; |
||||
use yii\email\BaseMailer; |
||||
use yii\email\BaseMessage; |
||||
use yii\email\ViewResolver; |
||||
use yii\mail\BaseMailer; |
||||
use yii\mail\BaseMessage; |
||||
use yii\mail\ViewResolver; |
||||
use yii\helpers\FileHelper; |
||||
use yiiunit\TestCase; |
||||
|
Loading…
Reference in new issue