torq/pimcore-helpers-bundle
最新稳定版本:v2.7.1
Composer 安装命令:
composer require torq/pimcore-helpers-bundle
包简介
README 文档
README
A collection of helpful services, utilities, and extensions for Pimcore.
Installation
- Install the composer package:
composer require torq/pimcore-helpers-bundle
- Add the bundle to
Kernel.phporbundles.php:$collection->addBundle(new TorqPimcoreHelpersBundle());
- (Optional) If using the
HashedInputcustom field type, make sure to add the "torq_pimcore_helpers.secret" parameter to the Symfony container inservices.yaml:parameters: torq_pimcore_helpers.secret: "%env(MY_SECRET_VAR)%"
Repository
The repository pattern wraps fetching, saving, and deleting Pimcore elements (assets, objects, etc.). There are several benefits to this pattern:
- Co-location of fetching logic; complicated querying logic can be encapculated into a single spot, promoting reusable queries over random queries sprinkled throughout the service layer.
- Mocks for testing; mocking static database read/writes is challenging, mocking a repository method is easy.
Normalizer
A full set of Symfony normalizers for Pimcore's unique object types including data objects, asset, field collections, object bricks, blocks, classification stores, etc.
Startup Commands
Set the #[AsStartupCommand] attribute on a Symfony command and add the following to the deploy or startup script:
bin/console torq:run-startup-commands
To automatically run that command on deploy/start-up. Startup commands are tracked in the startup_command_runs
database
table and are only run once by default. Set #[AsStartupCommand(repeatable: true)] to define a command which should be
run every time.
License
This bundle is licensed under the Pimcore Open Core License (POCL) and is intended for use with Pimcore Platform 2025.1 and newer.
See LICENSE.md for full license text.
统计信息
- 总下载量: 5.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2025-03-19