Skip to content

Commit

Permalink
Merge pull request #154 from imonteiro/psr
Browse files Browse the repository at this point in the history
Move to Psr containers
  • Loading branch information
roelvanduijnhoven authored Mar 23, 2023
2 parents 6ab57a8 + 901fdc7 commit dcef5ae
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
strategy:
matrix:
php-version:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
dependencies:
- "highest"
- "lowest"
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
}
],
"require": {
"php": "^7.2 || ^8.0",
"php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0",
"laminas/laminas-mail": "^2.9",
"laminas/laminas-http": "^2.8",
"laminas/laminas-mime": "^2.7",
"laminas/laminas-servicemanager": "^3.3"
"laminas/laminas-servicemanager": "^3.11"
},
"require-dev": {
"container-interop/container-interop": "^1.1",
"psr/container": "^1.0 || ^2.0",
"guzzlehttp/guzzle": "^7.4",
"laminas/laminas-modulemanager": "^2.8",
"laminas/laminas-mvc": "^3.1",
Expand All @@ -54,8 +54,8 @@
"laminas/laminas-config": "^3.3",
"doctrine/instantiator": "^1.3",
"squizlabs/php_codesniffer": "^3.5",
"phpunit/phpunit": "^8.5.8 || ^9.4.2",
"aws/aws-sdk-php": "^3.184"
"phpunit/phpunit": "^9.6.5",
"aws/aws-sdk-php": "^3.208.4"
},
"suggest": {
"aws/aws-sdk-php": "If you need to use Amazon SES"
Expand All @@ -71,7 +71,7 @@
}
},
"extra": {
"zf": {
"laminas": {
"component": "SlmMail",
"config-provider": "SlmMail\\ConfigProvider"
}
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/AwsSdkFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


use Aws\Sdk;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Factory\Exception\RuntimeException;

Expand Down
2 changes: 1 addition & 1 deletion src/Factory/ElasticEmailServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Factory\Exception\RuntimeException;
use SlmMail\Service\ElasticEmailService;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/ElasticEmailTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Mail\Transport\HttpTransport;
use SlmMail\Service\ElasticEmailService;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/HttpClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\Http\Client as HttpClient;
use Laminas\ServiceManager\Factory\FactoryInterface;

Expand Down
4 changes: 2 additions & 2 deletions src/Factory/MailgunServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Interop\Container\Exception\ContainerException;
use Psr\Container\ContainerInterface;
use Psr\Container\ContainerExceptionInterface;
use SlmMail\Factory\Exception\RuntimeException;
use SlmMail\Service\MailgunService;
use Laminas\ServiceManager\Exception\ServiceNotCreatedException;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/MailgunTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Mail\Transport\HttpTransport;
use SlmMail\Service\MailgunService;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/MandrillServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Factory\Exception\RuntimeException;
use SlmMail\Service\MandrillService;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/MandrillTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Mail\Transport\HttpTransport;
use SlmMail\Service\MandrillService;
Expand Down
4 changes: 2 additions & 2 deletions src/Factory/PostageServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Interop\Container\Exception\ContainerException;
use Psr\Container\ContainerInterface;
use Psr\Container\ContainerExceptionInterface;
use SlmMail\Factory\Exception\RuntimeException;
use SlmMail\Service\PostageService;
use Laminas\ServiceManager\Exception\ServiceNotCreatedException;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/PostageTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Mail\Transport\HttpTransport;
use SlmMail\Service\PostageService;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/PostmarkServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Factory\Exception\RuntimeException;
use SlmMail\Service\PostmarkService;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/PostmarkTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Mail\Transport\HttpTransport;
use SlmMail\Service\PostmarkService;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/SendGridServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Factory\Exception\RuntimeException;
use SlmMail\Service\SendGridService;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/SendGridTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Mail\Transport\HttpTransport;
use SlmMail\Service\SendGridService;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/SesServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Service\SesService;

Expand Down
2 changes: 1 addition & 1 deletion src/Factory/SesTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Mail\Transport\HttpTransport;
use SlmMail\Service\SesService;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/SparkPostServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Factory\Exception\RuntimeException;
use SlmMail\Service\SparkPostService;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/SparkPostTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

namespace SlmMail\Factory;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use SlmMail\Mail\Transport\HttpTransport;
use SlmMail\Service\SparkPostService;
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./Bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./Bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false">
<coverage includeUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
Expand Down

0 comments on commit dcef5ae

Please sign in to comment.