Skip to content

Commit

Permalink
fix: Add compatibility with newer version of PSR/simple-cache
Browse files Browse the repository at this point in the history
Signed-off-by: Avior <[email protected]>
  • Loading branch information
Aviortheking committed Jun 22, 2024
1 parent 383f7ef commit 0757ca7
Show file tree
Hide file tree
Showing 5 changed files with 454 additions and 704 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM php:8.1

WORKDIR /usr/src/app

# Install deps
RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
git wget zip unzip \
&& apt-get clean \
&& rm --recursive --force /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install PHP extensions
# RUN docker-php-ext-configure intl \
# && docker-php-ext-configure gd --with-freetype --with-jpeg \
# && docker-php-ext-install pdo mysqli pdo_mysql zip intl gd

# Copy the PHP config
# COPY php.ini /usr/local/etc/php/php.ini

# Copy composer
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
],
"minimum-stability": "stable",
"require": {
"php": ">=8.0",
"php": ">=8.1",
"psr/http-client": "^1.0",
"psr/simple-cache": "^1.0"
"psr/simple-cache": "^1 || ^2 || ^3"
},
"suggest": {
"symfony/cache": "Good PSR16 implementation",
Expand All @@ -40,7 +40,7 @@
},
"require-dev": {
"kriswallsmith/buzz": "^1.2",
"symfony/cache": "^5.3",
"symfony/cache": "^6",
"nyholm/psr7": "^1.4",
"squizlabs/php_codesniffer": "^3.6",
"phpmd/phpmd": "^2.10",
Expand Down
Loading

0 comments on commit 0757ca7

Please sign in to comment.