@@ -2,11 +2,9 @@ |
||
| 2 | 2 | namespace SamIT\React\Smtp; |
| 3 | 3 | |
| 4 | 4 | |
| 5 | -use React\Dns\Query\TimeoutException; |
|
| 6 | 5 | use React\EventLoop\LoopInterface; |
| 7 | 6 | use React\EventLoop\Timer\TimerInterface; |
| 8 | 7 | use React\Socket\ConnectionInterface; |
| 9 | -use React\Stream\WritableStream; |
|
| 10 | 8 | |
| 11 | 9 | class Connection extends \React\Socket\Connection{ |
| 12 | 10 | const STATUS_NEW = 0; |
@@ -2,11 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace SamIT\React\Smtp; |
| 4 | 4 | |
| 5 | -use Evenement\EventEmitter; |
|
| 6 | 5 | use React\EventLoop\LoopInterface; |
| 7 | -use React\Http\ServerInterface; |
|
| 8 | -use React\Socket\ServerInterface as SocketServerInterface; |
|
| 9 | -use React\Socket\ConnectionInterface; |
|
| 10 | 6 | |
| 11 | 7 | /** @event request */ |
| 12 | 8 | class Server extends \React\Socket\Server |
@@ -3,5 +3,5 @@ |
||
| 3 | 3 | |
| 4 | 4 | class Message implements MessageInterface |
| 5 | 5 | { |
| 6 | - use MessageTrait; |
|
| 6 | + use MessageTrait; |
|
| 7 | 7 | } |
| 8 | 8 | \ No newline at end of file |
@@ -57,12 +57,12 @@ |
||
| 57 | 57 | return $this->withRecipients([$email => $name]); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - public function withRecipients(array $recipients) |
|
| 61 | - { |
|
| 62 | - $new = clone $this; |
|
| 63 | - $new->recipients = $recipients; |
|
| 64 | - return $new; |
|
| 65 | - } |
|
| 60 | + public function withRecipients(array $recipients) |
|
| 61 | + { |
|
| 62 | + $new = clone $this; |
|
| 63 | + $new->recipients = $recipients; |
|
| 64 | + return $new; |
|
| 65 | + } |
|
| 66 | 66 | |
| 67 | 67 | public function withAddedRecipient($email, $name = null) |
| 68 | 68 | { |