Download the PHP package phpro/zf-apigility-doctrine-bulk without Composer
On this page you can find all versions of the php package phpro/zf-apigility-doctrine-bulk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package zf-apigility-doctrine-bulk
Repository abandoned 2020-11-27
This repository has been archived since we are not using it anymore internally. Feel free to use it AS-IS, we won't be providing any support anymore.
Apigility Doctrine Bulk Module
This module provides an extendable and fast way of adding bulk actions to the doctrine apigility module. It is based on the bulk API of elasticsearch.
Installation
Module Installation
Add to composer.json
Add module to application.config.php
Add your custom bulk endpoints to the configuration
Create a RPC Controller class
Run a bulk call
Request body:
Response body:
Custom Commands
It is very easy to add a custom action like changeEmail
to the bulk service.
This method will call the changeEmail($email) method on the entity with ID 1 and save the entity to the database.
When the result of this method is an array, then these results are added as key-value pairs to the response.
Custom listeners
It is possible to add your own custom listeners for specific tasks.
You should create a class that implements ListenerAggregateInterface.
This listener should listen to a BulkEvent with a specified command name.
When you add this listener to the service manager, it is posible to add the key to the listeners
property of the doctrine-bulk-handlers
part in the configuration.
TODO
- Interaction with admin
All versions of zf-apigility-doctrine-bulk with dependencies
zfcampus/zf-apigility Version ~1.0
zfcampus/zf-apigility-doctrine Version >=0.2
zfcampus/zf-configuration Version ~1.0
zendframework/zend-mvc Version 2.*
zendframework/zend-eventmanager Version 2.*
zendframework/zend-modulemanager Version 2.*
zendframework/zend-servicemanager Version 2.*
zendframework/zend-stdlib Version 2.*