Download the PHP package shopsys/read-model without Composer
On this page you can find all versions of the php package shopsys/read-model. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shopsys/read-model
More information about shopsys/read-model
Files in shopsys/read-model
Package read-model
Short Description [experimental] Read model layer for Shopsys Platform
License proprietary
Informations about the package read-model
Shopsys Read Model
This bundle for Shopsys Framework separates templates from model using read model concept.
The bundle is dedicated for projects based on Shopsys Framework (i.e. created from shopsys/project-base
) exclusively.
This repository is maintained by monorepo CHANGELOG.md.
Installation
The plugin is a Symfony bundle and is installed in the same way:
Download
First, you download the package using Composer:
Register
For the bundle to be loaded in your application you need to register it in registerBundles()
method in the app/AppKernel.php
file of your project:
Usage
If you want to leverage the advantages of read model concept, you need to use the particular implementation of ListedProductViewFacadeInterface
in your controllers (there is already prepared one implementation in the bundle).
The facade provides you the view objects for product lists that can be then used in the templates.
Available View Objects
ListedProductView
- product representation for FE product listsActionView
- representation of product action area (i.e. form for adding a product to cart, or link to the product detail in the case of main variant)ImageView
- representation of image
Available Twig functions
image
- renders image from givenImageView
Contributing
Thank you for your contributions to Shopsys Read Model package. Together we are making Shopsys Framework better.
This repository is READ-ONLY. If you want to report issues and/or send pull requests, please use the main Shopsys repository.
Please, check our Contribution Guide before contributing.
Support
What to do when you are in troubles or need some help? The best way is to join our Slack.
If you want to report issues, please use the main Shopsys repository.
All versions of read-model with dependencies
shopsys/form-types-bundle Version 13.0.0
shopsys/framework Version 13.0.0
shopsys/migrations Version 13.0.0
shopsys/plugin-interface Version 13.0.0
symfony/config Version ^5.4
symfony/dependency-injection Version ^5.4
symfony/http-kernel Version ^5.4
webmozart/assert Version ^1.4