承接 mwltr/ext-magento2-mwltr-filesystem-filedriver 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mwltr/ext-magento2-mwltr-filesystem-filedriver

Composer 安装命令:

composer require mwltr/ext-magento2-mwltr-filesystem-filedriver

包简介

Dummy Module

README 文档

README

This module replaces the class \Magento\Framework\Filesystem\Driver\File to provide a correct implementation for the getRelativePath method.

Prerequisites

You only need this module if you plan on having magento module sources outside of the Magento root.

Implementation

The overwrite can be found in \Mwltr\FilesystemFileDriver\Filesystem\FileDriver.

The actual implementation of the relative path caclulation can be found in \Mwltr\FilesystemFileDriver\Helper\RelativePathHelper.

To exchange the \Magento\Framework\Filesystem\Driver\File an di.xml defintion won't work, since the DriverPool is defined in \Magento\Framework\App\Bootstrap::createFilesystemDriverPool.

There is a way to add additional parameters to the DriverPool, by setting an array field with key Magento\Framework\App\Bootstrap::INIT_PARAM_FILESYSTEM_DRIVERS in the $_SERVER.

This module does that in the registration.php, since the registration.php is included during the whole composer autoload inclusion.

$_SERVER[\Magento\Framework\App\Bootstrap::INIT_PARAM_FILESYSTEM_DRIVERS] = [
    'file' => \Mwltr\FilesystemFileDriver\Filesystem\FileDriver::class,
];

统计信息

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

GitHub 信息

  • Stars: 13
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2018-05-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固