Download the PHP package kaliop/content-decorator-bundle without Composer
On this page you can find all versions of the php package kaliop/content-decorator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kaliop/content-decorator-bundle
More information about kaliop/content-decorator-bundle
Files in kaliop/content-decorator-bundle
Package content-decorator-bundle
Short Description Decorate your Ibexa content with custom model classes.
License MIT
Homepage https://github.com/kaliop/content-decorator-bundle
Informations about the package content-decorator-bundle
Kaliop Content Decorator Bundle
Kaliop Content Decorator Bundle is an Ibexa extension inspired by
eZObjectWrapperBundle. It lets you work with Ibexa Content objects as
typed models plus dedicated repositories.
Instead of using raw content objects everywhere, you map content types to custom classes extending
Kaliop\Contracts\ContentDecorator\Model\ContentDecorator.
Compatibility
| Bundle line | Ibexa | Symfony | PHP |
|---|---|---|---|
| 1.x | 4.6 | 5.4 LTS | >= 8.1 |
| 2.x | 5.0 | 7.4 LTS | >= 8.3 |
Installation
If Symfony Flex does not enable the bundle automatically, register it in config/bundles.php:
Quick Start
-
Configure mappings:
-
Create a decorator class:
-
Create a repository:
- Use
ContentDecoratorManagerin your service/controller:
Configuration
Injectors
Decorators are not Symfony services. Use injectors to add services during decoration. Implement
Kaliop\Contracts\ContentDecorator\Injector\InjectorInterface and tag as kaliop.content_decorator.injector
(autoconfiguration handles this automatically).
Default injectors:
ConfigResolverInjectorIbexaRepositoryInjectorImageVariationInjectorLoggerInjectorManagerInjectorTranslatorInjectorUrlGeneratorInjector
Performance and Method-Level Cache
- Decorated instances are cached in memory per request.
- Proxy classes can cache selected method results.
- Mark methods with
#[Cacheable]. - Method parameters must be serializable.
Contribute
The tool comes with quite a few built-in fixers, but everyone is more than welcome to contribute more of them.
License
This library is released under the MIT license. See the included LICENSE file for more information.
All versions of content-decorator-bundle with dependencies
pagerfanta/pagerfanta Version ^3.6
symfony/cache Version ^7.0
symfony/config Version ^7.0
symfony/dependency-injection Version ^7.0
symfony/event-dispatcher Version ^7.0
symfony/http-kernel Version ^7.0
ibexa/core Version ~5.0
nyholm/psr7 Version ^1.8
guzzlehttp/promises Version ^2.5