From feb33755ce10da3a958d3fc207c15e4919e02ced Mon Sep 17 00:00:00 2001 From: yuta Date: Tue, 23 May 2023 00:24:32 +0900 Subject: [PATCH] add phpredis --- .idea/mynote-back-end.iml | 1 - .idea/php.xml | 1 - Dockerfile | 2 ++ laravel/composer.json | 3 +- laravel/composer.lock | 60 +-------------------------------------- 5 files changed, 4 insertions(+), 63 deletions(-) diff --git a/.idea/mynote-back-end.iml b/.idea/mynote-back-end.iml index 15fed8f..6c769de 100644 --- a/.idea/mynote-back-end.iml +++ b/.idea/mynote-back-end.iml @@ -123,7 +123,6 @@ - diff --git a/.idea/php.xml b/.idea/php.xml index 1a62754..b13f4bf 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -117,7 +117,6 @@ - diff --git a/Dockerfile b/Dockerfile index 3da5c0b..0be5989 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,8 @@ WORKDIR /var/www/laravel RUN apt-get update && \ apt-get -y install git unzip libzip-dev libicu-dev libonig-dev && \ apt-get clean && \ + pecl install redis && \ + docker-php-ext-enable redis && \ rm -rf /var/lib/apt/lists/* && \ docker-php-ext-install intl pdo_mysql zip bcmath diff --git a/laravel/composer.json b/laravel/composer.json index a771925..22fd6ee 100644 --- a/laravel/composer.json +++ b/laravel/composer.json @@ -15,8 +15,7 @@ "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^8.75", "laravel/sanctum": "^2.14.1", - "laravel/tinker": "^2.7", - "predis/predis": "^2.1" + "laravel/tinker": "^2.7" }, "require-dev": { "fakerphp/faker": "^1.9.1", diff --git a/laravel/composer.lock b/laravel/composer.lock index 06d1129..8d1ffe5 100644 --- a/laravel/composer.lock +++ b/laravel/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9e8706171715092762fc5cb274aa7b0d", + "content-hash": "ac1ee43340f1e79742e37c34ec3afd97", "packages": [ { "name": "askedio/laravel-soft-cascade", @@ -2423,64 +2423,6 @@ ], "time": "2022-07-30T15:51:26+00:00" }, - { - "name": "predis/predis", - "version": "v2.1.2", - "source": { - "type": "git", - "url": "https://github.com/predis/predis.git", - "reference": "a77a43913a74f9331f637bb12867eb8e274814e5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/predis/predis/zipball/a77a43913a74f9331f637bb12867eb8e274814e5", - "reference": "a77a43913a74f9331f637bb12867eb8e274814e5", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^3.3", - "phpstan/phpstan": "^1.9", - "phpunit/phpunit": "^8.0 || ~9.4.4" - }, - "type": "library", - "autoload": { - "psr-4": { - "Predis\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Till Krüss", - "homepage": "https://till.im", - "role": "Maintainer" - } - ], - "description": "A flexible and feature-complete Redis client for PHP.", - "homepage": "http://github.com/predis/predis", - "keywords": [ - "nosql", - "predis", - "redis" - ], - "support": { - "issues": "https://github.com/predis/predis/issues", - "source": "https://github.com/predis/predis/tree/v2.1.2" - }, - "funding": [ - { - "url": "https://github.com/sponsors/tillkruss", - "type": "github" - } - ], - "time": "2023-03-02T18:32:04+00:00" - }, { "name": "psr/container", "version": "1.1.2",