定制 imarc/craft-volume-permissions 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

imarc/craft-volume-permissions

最新稳定版本:1.0.1

Composer 安装命令:

composer require imarc/craft-volume-permissions

包简介

Set the permissions for Craft 3 local volumes

README 文档

README

This is a Craft 3 module which allows settings the default permissions of all local volumes with environment variables. The following environment variables are available:

VOLUME_FILE_PUBLIC_PERMISSION=664
VOLUME_FILE_PRIVATE_PERMISSION=660
VOLUME_DIR_PUBLIC_PERMISSION=775
VOLUME_DIR_PRIVATE_PERMISSION=770

Being able to set the proper non-standard file permissions can be critical in certain environments. A specific example is deploying to a filesystem using ACLs where it is essential that directories and files are group writable.

Install

Install in your Craft 3 project using composer:

composer require imarc/craft-volume-permissions

Then enable the module within your config/app.php file:

<?php
return [
    'modules' => [
        'volume-permissions' => \Imarc\Craft\Modules\VolumePermissions::class,
    ],
    'bootstrap' => [
        'volume-permissions',
    ],
];

Then use the environment variables to configure the permissions.

Dirty Hack?

This module is a bit of a hack as it uses Reflection to alter Flysystem's hardcoded Local adapter defaults. Ideally a better solution is found in the future.

License

The MIT License (MIT)

Copyright

Copyright (c) 2019 iMarc LLC

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固