wieni/wmcontroller_flysystem 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wieni/wmcontroller_flysystem

最新稳定版本:1.0.1

Composer 安装命令:

composer require wieni/wmcontroller_flysystem

包简介

A Flysystem cache storage for wieni/wmcontroller

README 文档

README

Latest Stable Version Total Downloads License

A Flysystem cache storage for wieni/wmcontroller

Installation

This package requires PHP 8.0 and Drupal 9 or higher. It can be installed using Composer:

 composer require wieni/wmcontroller_flysystem

To enable this cache storage, change the following container parameters:

parameters:
    wmcontroller.cache.storage: wmcontroller.cache.storage.flysystem

    # Backend storage responsible for keeping track of tags and cache entries
    wmcontroller.cache.flysystem.backend.storage: wmcontroller.cache.storage.mysql

    wmcontroller.cache.flysystem.scheme: wmcontrollerscheme
    wmcontroller.cache.flysystem.directory: wmcontroller

Make sure to also set the flysystem scheme in settings.php.

// settings.php

$settings['flysystem'] = [
    'wmcontrollerscheme' => [
        'driver' => 'local',
        'config' => [
            'root' => 'sites/default/cache',
            'public' => false,
        ],
        'serve_js' => true,
        'serve_css' => true,
    ],
];

// Or if you want to store your cache on S3
// This requires the drupal/flysystem_s3 module
$settings['flysystem'] = [
    'wmcontrollerscheme' => [
        'driver' => 's3',
        'config' => [
            'key' => $_ENV['S3_KEY'],
            'secret' => $_ENV['S3_SECRET'],
            'region' => $_ENV['S3_REGION'],
            'bucket' => $_ENV['S3_BUCKET'],
            'prefix' => $_ENV['S3_PREFIX'] ?? '',
            'cname' => $_ENV['S3_CNAME'] ?? '',
            'options' => [
                'ACL' => 'private',
            ],
            'protocol' => 'https',
            'public' => false,
        ],
        'cache' => false,
        'serve_js' => false,
        'serve_css' => false,
    ],
];

Changelog

All notable changes to this project will be documented in the CHANGELOG file.

Security

If you discover any security-related issues, please email security@wieni.be instead of using the issue tracker.

License

Distributed under the MIT License. See the LICENSE file for more information.

统计信息

  • 总下载量: 517
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-22