Download the PHP package shopery/view-bundle without Composer
On this page you can find all versions of the php package shopery/view-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shopery/view-bundle
More information about shopery/view-bundle
Files in shopery/view-bundle
Package view-bundle
Short Description Integrate shopery/view in your symfony application
License MIT
Informations about the package view-bundle
shopery/view-bundle
Integrates shopery/view into your Symfony projects.
Installation
You can install this library:
- Install via composer:
composer require shopery/view-bundle - Use the official Git repository:
git clone https://github.com/shopery/view-bundle.
And add the bundle to your kernel as usual.
If you have any trouble, please refer to the symfony docs.
Factories
This bundle defines a service named view_factory which can be injected as a dependency.
This class implements Shopery\View\ViewFactory and has a createView method.
Tag any service with view_factory to register it as a factory for a given object.
So whenever you pass an Acme\Product to view_factory::create_view, your factory is run.
Extensions
Multiple view extensions can be defined as services and tagged with the view_factory.extension tag.
This services must implement Shopery\View\Extension\ViewExtension.
All versions of view-bundle with dependencies
symfony/dependency-injection Version >=2.3
symfony/http-foundation Version >=2.3
symfony/http-kernel Version >=2.3
shopery/view Version ^1.2