Skip to content

Commit b7c9189

Browse files
committed
Add bridge with league/flysystem
1 parent 69b3cf6 commit b7c9189

19 files changed

+834
-1
lines changed

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"doctrine/dbal": "^2.11",
1919
"doctrine/orm": "^2.8",
2020
"doctrine/persistence": "^2.0",
21+
"league/flysystem": "^3.0",
2122
"psr/container": "^1.0",
2223
"psr/event-dispatcher": "^1.0",
2324
"psr/log": "^1.0|^2.0|^3.0",
@@ -34,7 +35,8 @@
3435
"phpunit/phpunit": "^9.5",
3536
"squizlabs/php_codesniffer": "^3.6",
3637
"symfony/filesystem": "^5.0|^6.0",
37-
"symfony/process": "^5.0|^6.0"
38+
"symfony/process": "^5.0|^6.0",
39+
"league/flysystem-memory": "^3.0"
3840
},
3941
"replace": {
4042
"yokai/batch": "self.version",
@@ -55,6 +57,7 @@
5557
"Yokai\\Batch\\Bridge\\Doctrine\\DBAL\\": "src/batch-doctrine-dbal/src/",
5658
"Yokai\\Batch\\Bridge\\Doctrine\\ORM\\": "src/batch-doctrine-orm/src/",
5759
"Yokai\\Batch\\Bridge\\Doctrine\\Persistence\\": "src/batch-doctrine-persistence/src/",
60+
"Yokai\\Batch\\Bridge\\League\\Flysystem\\": "src/batch-league-flysystem/src/",
5861
"Yokai\\Batch\\Bridge\\Symfony\\Console\\": "src/batch-symfony-console/src/",
5962
"Yokai\\Batch\\Bridge\\Symfony\\Framework\\": "src/batch-symfony-framework/src/",
6063
"Yokai\\Batch\\Bridge\\Symfony\\Messenger\\": "src/batch-symfony-messenger/src/",
@@ -72,6 +75,7 @@
7275
"Yokai\\Batch\\Tests\\Bridge\\Doctrine\\DBAL\\": "src/batch-doctrine-dbal/tests/",
7376
"Yokai\\Batch\\Tests\\Bridge\\Doctrine\\ORM\\": "src/batch-doctrine-orm/tests/",
7477
"Yokai\\Batch\\Tests\\Bridge\\Doctrine\\Persistence\\": "src/batch-doctrine-persistence/tests/",
78+
"Yokai\\Batch\\Tests\\Bridge\\League\\Flysystem\\": "src/batch-league-flysystem/tests/",
7579
"Yokai\\Batch\\Tests\\Bridge\\Symfony\\Console\\": "src/batch-symfony-console/tests/",
7680
"Yokai\\Batch\\Tests\\Bridge\\Symfony\\Framework\\": "src/batch-symfony-framework/tests/",
7781
"Yokai\\Batch\\Tests\\Bridge\\Symfony\\Messenger\\": "src/batch-symfony-messenger/tests/",

scripts/split-branch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ remote batch-box-spout git@github.com:yokai-php/batch-box-spout.git
2929
remote batch-doctrine-dbal git@github.com:yokai-php/batch-doctrine-dbal.git
3030
remote batch-doctrine-orm git@github.com:yokai-php/batch-doctrine-orm.git
3131
remote batch-doctrine-persistence git@github.com:yokai-php/batch-doctrine-persistence.git
32+
remote batch-league-flysystem git@github.com:yokai-php/batch-league-flysystem.git
3233
remote batch-symfony-console git@github.com:yokai-php/batch-symfony-console.git
3334
remote batch-symfony-framework git@github.com:yokai-php/batch-symfony-framework.git
3435
remote batch-symfony-messenger git@github.com:yokai-php/batch-symfony-messenger.git
@@ -41,6 +42,7 @@ split 'src/batch-box-spout' batch-box-spout
4142
split 'src/batch-doctrine-dbal' batch-doctrine-dbal
4243
split 'src/batch-doctrine-orm' batch-doctrine-orm
4344
split 'src/batch-doctrine-persistence' batch-doctrine-persistence
45+
split 'src/batch-league-flysystem' batch-league-flysystem
4446
split 'src/batch-symfony-console' batch-symfony-console
4547
split 'src/batch-symfony-framework' batch-symfony-framework
4648
split 'src/batch-symfony-messenger' batch-symfony-messenger

scripts/split-tag

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ remote batch-box-spout git@github.com:yokai-php/batch-box-spout.git
2929
remote batch-doctrine-dbal git@github.com:yokai-php/batch-doctrine-dbal.git
3030
remote batch-doctrine-orm git@github.com:yokai-php/batch-doctrine-orm.git
3131
remote batch-doctrine-persistence git@github.com:yokai-php/batch-doctrine-persistence.git
32+
remote batch-league-flysystem git@github.com:yokai-php/batch-league-flysystem.git
3233
remote batch-symfony-console git@github.com:yokai-php/batch-symfony-console.git
3334
remote batch-symfony-framework git@github.com:yokai-php/batch-symfony-framework.git
3435
remote batch-symfony-messenger git@github.com:yokai-php/batch-symfony-messenger.git
@@ -41,6 +42,7 @@ split 'src/batch-box-spout' batch-box-spout
4142
split 'src/batch-doctrine-dbal' batch-doctrine-dbal
4243
split 'src/batch-doctrine-orm' batch-doctrine-orm
4344
split 'src/batch-doctrine-persistence' batch-doctrine-persistence
45+
split 'src/batch-league-flysystem' batch-league-flysystem
4446
split 'src/batch-symfony-console' batch-symfony-console
4547
split 'src/batch-symfony-framework' batch-symfony-framework
4648
split 'src/batch-symfony-messenger' batch-symfony-messenger
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.gitattributes export-ignore
2+
.gitignore export-ignore
3+
docs/ export-ignore
4+
tests/ export-ignore
5+
LICENSE export-ignore
6+
*.md export-ignore
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'Lock down Pull Requests'
2+
3+
on:
4+
pull_request:
5+
types: opened
6+
7+
jobs:
8+
lockdown:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: dessant/repo-lockdown@v2
12+
with:
13+
github-token: ${{ github.token }}
14+
close-pr: true
15+
lock-pr: true
16+
pr-comment: >
17+
Thanks for your pull request!
18+
19+
However, this repository does not accept pull requests,
20+
see the README for details.
21+
22+
If you want to contribute,
23+
you should instead open a pull request on the main repository:
24+
25+
https://github.com/yokai-php/batch-src
26+
27+
Thank you
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.phpunit.result.cache
2+
/vendor/
3+
/composer.lock

src/batch-league-flysystem/LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2019 Yann Eugoné
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is furnished
8+
to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# league/flysystem bridge for Batch processing library
2+
3+
[![Latest Stable Version](https://img.shields.io/packagist/v/yokai/batch-league-flysystem?style=flat-square)](https://packagist.org/packages/yokai/batch-league-flysystem)
4+
[![Downloads Monthly](https://img.shields.io/packagist/dm/yokai/batch-league-flysystem?style=flat-square)](https://packagist.org/packages/yokai/batch-league-flysystem)
5+
6+
Bridge of [`league/flysystem`](https://github.com/thephpleague/flysystem) for [Batch](https://github.com/yokai-php/batch).
7+
8+
9+
## :warning: BETA
10+
11+
This library is following [semver](https://semver.org/).
12+
However before we reach the first stable version (`v1.0.0`), we may decide to introduce **API changes in minor versions**.
13+
This is why you should stick to a `v0.[minor].*` requirement !
14+
15+
16+
# Installation
17+
18+
```
19+
composer require yokai/batch-league-flysystem
20+
```
21+
22+
23+
## Documentation
24+
25+
This package provides:
26+
27+
- a [job](docs/copy-files-job.md) that copy file(s) from one filesystem to another
28+
- a [job](docs/move-files-job.md) that move file(s) from one filesystem to another
29+
30+
31+
## Contribution
32+
33+
This package is a readonly split of a [larger repository](https://github.com/yokai-php/batch-src),
34+
containing all tests and sources for all librairies of the batch universe.
35+
36+
Please feel free to open an [issue](https://github.com/yokai-php/batch-src/issues)
37+
or a [pull request](https://github.com/yokai-php/batch-src/pulls)
38+
in the [main repository](https://github.com/yokai-php/batch-src).
39+
40+
The library was originally created by [Yann Eugoné](https://github.com/yann-eugone).
41+
See the list of [contributors](https://github.com/yokai-php/batch-src/contributors).
42+
43+
44+
## License
45+
46+
This library is under MIT [LICENSE](LICENSE).
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "yokai/batch-flysystem",
3+
"description": "league/flysystem bridge for yokai/batch",
4+
"keywords": ["batch", "job", "filesystem", "flysystem"],
5+
"type": "library",
6+
"license": "MIT",
7+
"authors": [
8+
{
9+
"name": "Yann Eugoné",
10+
"email": "eugone.yann@gmail.com"
11+
}
12+
],
13+
"require": {
14+
"php": "^8.0",
15+
"league/flysystem": "^3.0",
16+
"yokai/batch": "^0.4.0"
17+
},
18+
"autoload": {
19+
"psr-4": {
20+
"Yokai\\Batch\\Bridge\\League\\Flysystem\\": "src/"
21+
}
22+
},
23+
"require-dev": {
24+
"league/flysystem-memory": "^3.0",
25+
"phpspec/prophecy-phpunit": "^2.0",
26+
"phpunit/phpunit": "^9.5"
27+
},
28+
"autoload-dev": {
29+
"psr-4": {
30+
"Yokai\\Batch\\Tests\\Bridge\\League\\Flysystem\\": "tests/"
31+
}
32+
}
33+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
todo

0 commit comments

Comments
 (0)