Skip to content

Commit 5f85621

Browse files
authored
Move files to a new structure (#241)
* Moved around all the code to a new folders * Some bugfixes * Fixed meta files * ci fix * cu * cs * "league/mime-type-detection": "dev-master", * flysystem fix * pslam fix * cs * cs
0 parents  commit 5f85621

25 files changed

+828
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/Tests export-ignore
2+
/phpunit.xml.dist export-ignore
3+
/.gitignore export-ignore

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [nyholm, jderusse]

.github/workflows/.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[*.yml]
2+
indent_size = 2

.github/workflows/checks.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: BC Check
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
roave-bc-check:
10+
name: Roave BC Check
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Roave BC Check
18+
uses: docker://nyholm/roave-bc-check-ga

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
strategy:
14+
max-parallel: 10
15+
matrix:
16+
php: ['7.2', '7.3', '7.4']
17+
18+
steps:
19+
- name: Set up PHP
20+
uses: shivammathur/[email protected]
21+
with:
22+
php-version: ${{ matrix.php }}
23+
coverage: xdebug
24+
ini-values: xdebug.overload_var_dump=1
25+
tools: prestissimo
26+
27+
- name: Checkout code
28+
uses: actions/checkout@v2
29+
30+
- name: Download dependencies
31+
run: |
32+
composer config minimum-stability dev
33+
composer req symfony/phpunit-bridge --no-update
34+
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
35+
36+
- name: Run tests
37+
run: ./vendor/bin/simple-phpunit

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor/
2+
.php_cs.cache
3+
.phpunit.result.cache
4+
composer.lock

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Change Log
2+
3+
## 0.1.1
4+
5+
### Added
6+
7+
- Support for async-aws/core: ^0.2
8+
- Support for CloudFormation, Lambda and SNS
9+
10+
### Fixed
11+
12+
- Configuration bug where you specified `async_aws.client:` and nothing more
13+
14+
## 0.1.0
15+
16+
First version

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 Jérémy Derussé, Tobias Nyholm
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Async AWS Symfony Bundle
2+
3+
![](https://github.com/async-aws/symfony-bundle/workflows/Tests/badge.svg?branch=master)
4+
![](https://github.com/async-aws/symfony-bundle/workflows/BC%20Check/badge.svg?branch=master)
5+
6+
A small SymfonyBundle that helps with configuration and autowiring.
7+
8+
## Install
9+
10+
```cli
11+
composer require async-aws/async-aws-bundle
12+
```
13+
14+
## Configure
15+
16+
The bundle will autowire all AsyncAws clients that you have installed. You can
17+
provide default configuration to all clients and specific configuration of each
18+
service you define.
19+
20+
```yaml
21+
22+
# config/packages/async_aws.yaml
23+
# This example assume you have installed core, ses, sqs and S3
24+
#
25+
26+
async_aws:
27+
config: # Will be merged with other configuration
28+
region: eu-central-1
29+
30+
clients:
31+
ses: ~ # This will complain if we dont have that package installed
32+
sqs:
33+
config:
34+
region: us-west-1
35+
foobar:
36+
type: sqs
37+
```
38+
39+
The config above will create the following services:
40+
41+
| Service name | Autowired with |
42+
| -------------------------- | ------------------------------- |
43+
| `async_aws.client.ses` | \AsyncAws\Ses\SesClient
44+
| `async_aws.client.sqs` | \AsyncAws\Sqs\SqsClient
45+
| `async_aws.client.foobar` | \AsyncAws\Sqs\SqsClient $foobar
46+
| `async_aws.client.s3` | \AsyncAws\S3\S3Client
47+
| `async_aws.client.sts` | \AsyncAws\Core\Sts\StsClient
48+
49+
For a complete reference of the configuration please run:
50+
51+
```cli
52+
php bin/console config:dump-reference async_aws
53+
```

composer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "async-aws/async-aws-bundle",
3+
"type": "symfony-bundle",
4+
"description": "Configure all your AsyncAWS services and enjoy the autowire greatness.",
5+
"keywords": [
6+
"aws",
7+
"async",
8+
"symfony",
9+
"bundle"
10+
],
11+
"license": "MIT",
12+
"require": {
13+
"php": "^7.2.5",
14+
"async-aws/core": "^0.1 || ^0.2",
15+
"symfony/config": "^4.4 || ^5.0",
16+
"symfony/dependency-injection": "^4.4 || ^5.0",
17+
"symfony/http-kernel": "^4.4 || ^5.0"
18+
},
19+
"require-dev": {
20+
"async-aws/s3": "^0.1 || ^0.2",
21+
"async-aws/ses": "^0.1 || ^0.2",
22+
"async-aws/sqs": "^0.1 || ^0.2",
23+
"matthiasnoback/symfony-config-test": "^4.1",
24+
"nyholm/symfony-bundle-test": "^1.6.1"
25+
},
26+
"extra": {
27+
"branch-alias": {
28+
"dev-master": "0.1-dev"
29+
}
30+
},
31+
"autoload": {
32+
"psr-4": {
33+
"AsyncAws\\Symfony\\Bundle\\": "src"
34+
}
35+
},
36+
"autoload-dev": {
37+
"psr-4": {
38+
"AsyncAws\\Symfony\\Bundle\\Tests\\": "tests/"
39+
}
40+
},
41+
"minimum-stability": "dev"
42+
}

0 commit comments

Comments
 (0)