carbon / filecontent
1.1.3
2018-06-22 10:51 UTC
Requires
- carbon/eel: ~1.1
This package is auto-updated.
Last update: 2022-02-01 13:10:47 UTC
README
Carbon.FileContent Package for Neos CMS
已弃用。请使用 Carbon.Eel
版本 | Neos |
---|---|
0.5* | 2.* |
> 1.1 | 3.* + 4.* |
Fusion Prototypes
Carbon.FileContent:FileContent
此原型从 path
或 resource
读取文件。用于将文件内联包含。
Carbon.FileContent:HashOfFile
此原型从 path
或 resource
读取文件并返回基于 md5 的字符串。
安装
通常情况下,您需要调整包的一些小参数(例如,在 Settings.yaml
中的配置)。因此,重要的一点是将相应的包添加到您的主题包的 composer 中。通常情况下,这是位于 Packages/Sites/
下的网站包。要正确安装,请转到您的主题包(例如 Packages/Sites/Foo.Bar
),并运行以下命令
composer require carbon/filecontent --no-update
要安装 Neos 2.* 下的包,您需要输入
composer require "carbon/filecontent:^0.5"--no-update
使用 --no-update
命令可以防止依赖项自动更新。在将包添加到您的主题 composer.json
后,返回 Neos 安装根目录并运行 composer update
。完成!您想要的包现在已正确安装。
许可证
在 MIT 许可下发布,请参阅 LICENSE