Skip to content

Commit a01bf6a

Browse files
committed
initialize cache package
1 parent 39a8392 commit a01bf6a

5 files changed

Lines changed: 75 additions & 0 deletions

File tree

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
"require": {
1111
"php": "^8.2",
12+
"psr/cache": "^3.0",
1213
"psr/clock": "^1.0",
1314
"psr/container": "^2.0.x-dev",
1415
"psr/http-factory": "^1.1",
@@ -22,6 +23,7 @@
2223
"symplify/monorepo-builder": "^11.2"
2324
},
2425
"replace": {
26+
"aether/cache": "self.version",
2527
"aether/clock": "self.version",
2628
"aether/database": "self.version",
2729
"aether/dependency-injection": "self.version",
@@ -32,6 +34,7 @@
3234
"aether/support": "self.version"
3335
},
3436
"provide": {
37+
"psr/cache": "*",
3538
"psr/clock-implementation": "*",
3639
"psr/container-implementation": "2.0.2",
3740
"psr/http-factory": "*",
@@ -41,6 +44,7 @@
4144
"prefer-stable": true,
4245
"autoload": {
4346
"psr-4": {
47+
"Aether\\Cache\\": "packages/Cache/src/",
4448
"Aether\\Clock\\": "packages/Clock/src/",
4549
"Aether\\Database\\": "packages/Database/src/",
4650
"Aether\\DependencyInjection\\": "packages/DependencyInjection/src/",
@@ -53,6 +57,7 @@
5357
},
5458
"autoload-dev": {
5559
"psr-4": {
60+
"Aether\\Tests\\Cache\\": "packages/Cache/tests/",
5661
"Aether\\Tests\\Clock\\": "packages/Clock/tests/",
5762
"Aether\\Tests\\Database\\": "packages/Database/tests/",
5863
"Aether\\Tests\\DependencyInjection\\": "packages/DependencyInjection/tests/",
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Close Pull Request
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
7+
jobs:
8+
run:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: superbrothers/close-pull-request@v3
12+
with:
13+
comment: |
14+
Thanks for your Pull Request! We love contributions.
15+
16+
However, you should instead open your PR on the main repository:
17+
https://github.com/sxbrsky/aether
18+
19+
This repository is what we call a "subtree split": a read-only subset of that main repository.

packages/Cache/LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2024 Dominik Szamburski
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
8+
furnished 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 THE
19+
SOFTWARE.

packages/Cache/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Aether Cache Component

packages/Cache/composer.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "aether/cache",
3+
"description": "The Aether cache package.",
4+
"license": "MIT",
5+
"type": "library",
6+
"support": {
7+
"issues": "https://github.com/sxbrsky/aether/issues",
8+
"source": "https://github.com/sxbrsky/aether"
9+
},
10+
"provide": {
11+
"psr/cache": "*"
12+
},
13+
"require": {
14+
"php": "^8.2",
15+
"psr/cache": "^3.0"
16+
},
17+
"minimum-stability": "dev",
18+
"autoload": {
19+
"psr-4": {
20+
"Aether\\Cache\\": "src/"
21+
}
22+
},
23+
"autoload-dev": {
24+
"psr-4": {
25+
"Aether\\Tests\\Cache\\": "tests/"
26+
}
27+
},
28+
"config": {
29+
"sort-packages": true
30+
}
31+
}

0 commit comments

Comments
 (0)