Skip to content

Commit 9dde4f5

Browse files
author
costin
committed
Migrate Zend to Laminas, Expressive to Mezzio
1 parent 8874ef0 commit 9dde4f5

17 files changed

Lines changed: 96 additions & 78 deletions

‎CHANGELOG.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 2.0.0 - 2020-01-30
2+
3+
### Changed
4+
* Laminas and Mezzio migration.
5+
6+
### Added
7+
* Nothing
8+
9+
### Deprecated
10+
* Nothing
11+
12+
### Removed
13+
* Support
14+
15+
### Fixed
16+
* Nothing
17+
18+
119
## 1.0.0 - 2018-10-05
220

321
### Changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# dot-mail
22

3-
DotKernel mail component based on [zend-mail](https://github.com/zendframework/zend-mail)
3+
DotKernel mail component based on [laminas-mail](https://github.com/laminas/laminas-mail)

‎composer.json‎

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
{
2-
"name": "dotkernel/dot-mail",
3-
"type": "library",
4-
"description": "DotKernel mail component based on zend-mail",
5-
"license": "MIT",
6-
"authors": [
7-
{
8-
"name": "DotKernel Team",
9-
"email": "team@dotkernel.com"
2+
"name": "dotkernel/dot-mail",
3+
"type": "library",
4+
"description": "DotKernel mail component based on laminas-mail",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "DotKernel Team",
9+
"email": "team@dotkernel.com"
10+
}
11+
],
12+
"require": {
13+
"php": "^7.2",
14+
"laminas/laminas-servicemanager": "^3.3",
15+
"laminas/laminas-mail": "^2.9",
16+
"dotkernel/dot-event": "^2.0",
17+
"laminas/laminas-dependency-plugin": "^1.0"
18+
},
19+
"require-dev": {
20+
"phpunit/phpunit": "^4.8",
21+
"squizlabs/php_codesniffer": "^2.3"
22+
},
23+
"autoload": {
24+
"psr-4": {
25+
"Dot\\Mail\\": "src/"
26+
}
27+
},
28+
"autoload-dev": {
29+
"psr-4": {
30+
"DotTest\\Mail\\": "test/"
31+
}
32+
},
33+
"extra": {
34+
"branch-alias": {
35+
"dev-master": "2.0-dev",
36+
"dev-develop": "2.1-dev"
37+
}
1038
}
11-
],
12-
"require": {
13-
"php": "^7.1",
14-
"zendframework/zend-servicemanager": "^3.3",
15-
"zendframework/zend-mail": "^2.9",
16-
17-
"dotkernel/dot-event": "^0.2.1"
18-
},
19-
"require-dev": {
20-
"phpunit/phpunit": "^4.8",
21-
"squizlabs/php_codesniffer": "^2.3"
22-
},
23-
"autoload": {
24-
"psr-4": {
25-
"Dot\\Mail\\": "src/"
26-
}
27-
},
28-
"autoload-dev": {
29-
"psr-4": {
30-
"DotTest\\Mail\\": "test/"
31-
}
32-
},
33-
"extra": {
34-
"branch-alias": {
35-
"dev-master": "1.1-dev",
36-
"dev-develop": "2.0-dev"
37-
}
38-
}
3939
}

‎mail.global.php.dist‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ return [
1616

1717
/**
1818
* the mail transport to use
19-
* can be any class implementing Zend\Mail\Transport\TransportInterface
19+
* can be any class implementing Laminas\Mail\Transport\TransportInterface
2020
*
2121
* for standard mail transports, you can use these aliases
22-
* - sendmail => Zend\Mail\Transport\Sendmail
23-
* - smtp => Zend\Mail\Transport\Smtp
24-
* - file => Zend\Mail\Transport\File
25-
* - in_memory => Zend\Mail\Transport\InMemory
22+
* - sendmail => Laminas\Mail\Transport\Sendmail
23+
* - smtp => Laminas\Mail\Transport\Smtp
24+
* - file => Laminas\Mail\Transport\File
25+
* - in_memory => Laminas\Mail\Transport\InMemory
2626
*
2727
* defaults to sendmail
2828
**/
2929

30-
'transport' => \Zend\Mail\Transport\Smtp::class,
30+
'transport' => \Laminas\Mail\Transport\Smtp::class,
3131

3232
//message configuration
3333
'message_options' => [
@@ -75,7 +75,7 @@ return [
7575
],
7676
],
7777

78-
//options that will be used only if Zend\Mail\Transport\Smtp adapter is used
78+
//options that will be used only if Laminas\Mail\Transport\Smtp adapter is used
7979
'smtp_options' => [
8080

8181
//hostname or IP address of the mail server
@@ -102,14 +102,14 @@ return [
102102
]
103103
],
104104

105-
//file options that will be used only if the adapter is Zend\Mail\Transport\File
105+
//file options that will be used only if the adapter is Laminas\Mail\Transport\File
106106
/*'file_options' => [
107107

108108
//this is the folder where the file is going to be saved
109109
//default value is 'data/mail/output'
110110
'path' => 'data/mail/output',
111111

112-
//a callable that will get the Zend\Mail\Transport\File object as an argument and should return the filename
112+
//a callable that will get the Laminas\Mail\Transport\File object as an argument and should return the filename
113113
//if null is used, and empty callable will be used
114114
//'callback' => null,
115115
],*/

‎src/Event/AbstractMailEventListener.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Dot\Mail\Event;
1111

12-
use Zend\EventManager\AbstractListenerAggregate;
12+
use Laminas\EventManager\AbstractListenerAggregate;
1313

1414
/**
1515
* Class AbstractMailListener

‎src/Event/MailEventListenerAwareTrait.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Dot\Mail\Event;
1111

12-
use Zend\EventManager\EventManagerAwareTrait;
12+
use Laminas\EventManager\EventManagerAwareTrait;
1313

1414
/**
1515
* Class MailListenerAwareTrait

‎src/Event/MailEventListenerInterface.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Dot\Mail\Event;
1111

12-
use Zend\EventManager\ListenerAggregateInterface;
12+
use Laminas\EventManager\ListenerAggregateInterface;
1313

1414
/**
1515
* Interface MailListenerInterface

‎src/Event/MailEventListenerTrait.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
namespace Dot\Mail\Event;
1111

12-
use Zend\EventManager\EventManagerInterface;
13-
use Zend\EventManager\ListenerAggregateTrait;
12+
use Laminas\EventManager\EventManagerInterface;
13+
use Laminas\EventManager\ListenerAggregateTrait;
1414

1515
/**
1616
* Class MailEventListenerTrait

‎src/Factory/AbstractMailFactory.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Dot\Mail\Factory;
1111

1212
use Interop\Container\ContainerInterface;
13-
use Zend\ServiceManager\Factory\AbstractFactoryInterface;
13+
use Laminas\ServiceManager\Factory\AbstractFactoryInterface;
1414

1515
/**
1616
* Class AbstractMailFactory

‎src/Factory/MailOptionsAbstractFactory.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
use Dot\Mail\Options\MailOptions;
1313
use Interop\Container\ContainerInterface;
14-
use Zend\Stdlib\ArrayUtils;
14+
use Laminas\Stdlib\ArrayUtils;
1515

1616
/**
1717
* Class MailOptionsAbstractFactory

0 commit comments

Comments
 (0)