studioemma/bundle-installation-bundle
最新稳定版本:2.0.0
Composer 安装命令:
composer require studioemma/bundle-installation-bundle
包简介
This Bundle adds helper functions to allow easy installation of Pimcore Bundles.
README 文档
README
This Bundle adds helper methods to allow easy installation of Pimcore Bundles.
Included helper methods
- Installation of Class Definitions
- Installation of Field Collections
- Installation of Object Bricks
- Create (recursive) Data Object Folder and Website setting
- Create (recursive) Asset Folder and Website setting
- Create (recursive) Document Folder and Website setting
- Create Website setting
Installation
stable:
composer require studioemma/bundle-installation-bundle
unstable:
composer require studioemma/bundle-installation-bundle:dev-master
Usage
Add the trait to your Installer class of the bundle
use BundleInstallationTrait;
Use the helper methods (ex.)
$this->installClassDefinition('Blog');
$this->installFieldCollection('BlogComment');
$this->installObjectBrick('BlogPostDetails');
$this->createObjectFolderAndWebsiteSetting('/blog','object_folder_blogs');
$this->createDocumentFolderAndWebsiteSetting('/blog','document_folder_posts');
$this->createAssetFolderAndWebsiteSetting('/blog', 'asset_folder_blog');
To be able to install Class Definitions, FieldCollections and ObjectBricks, an export of the item needs to be added to your bundles "Resources/data" folder. It needs to be the same name as provided in the install* method.
统计信息
- 总下载量: 7.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-10