pavelkouril/flytte 问题修复 & 功能扩展

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

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

pavelkouril/flytte

最新稳定版本:v0.1

Composer 安装命令:

composer require pavelkouril/flytte

包简介

Flytte is League\Flysystem integration for Nette Framework

README 文档

README

This package provides Flysystem integration via compiler extension for Nette Framework 2.3.

Installation

You can install this package via composer

$ composer require pavelkouril/flytte

Usage

To use Flysystem in your Nette project, you just need to register the PavelKouril\Flytte\DI\FlysystemExtension in the extensions section of you config file.

Like this:

extensions:
    flysystem: PavelKouril\Flytte\DI\FlysystemExtension

This will enable you to configure Flysystem in the flysystem section, like this:

flysystem:
    default: local
    adapters:
        local: League\Flysystem\Adapter\Local("%appDir%/...")

The name of default adapter has to be the key of one of your adapters. You need to specify at least one adapter.

Multiple Filesystems

The default League\Flysystem\Filesystem instance (using the default adapter) is autowired. The rest is not autowired, but is accessible in your config via @flysystem.filesystems.local (if you are interested in the Filesystem class) or @flysystem.adapters.local (if you are interested in the adapter itself).

MountManager

You can access multiple filesystems simultaneously by using the League\Flysystem\MountManager class. The MountManager class is autowired. All the filesystems are registered by their adapter name in config as a protocol (ie. local://).

Adapters

By default, only the adapters included by default in Flysystem are available.

Other adapters need to be obtained separately - packages name and their usage can be found at the official site.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-25