Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 2a8cded

Browse files
committed
Remove zend-form dependency
As of zend-form 2.8.0, it exposes itself as a ZF component / module, obsoleting the functionality currently present in zend-mvc; that functionality can thus be removed.
1 parent 410375b commit 2a8cded

10 files changed

+27
-470
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"container-interop/container-interop": "^1.1"
2525
},
2626
"require-dev": {
27-
"zendframework/zend-form": "^2.7",
2827
"zendframework/zend-json": "^2.6.1 || ^3.0",
2928
"zendframework/zend-psr7bridge": "^0.2",
3029
"fabpot/php-cs-fixer": "1.7.*",

composer.lock

Lines changed: 2 additions & 250 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/book/migration/to-v3-0.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,31 @@ $ composer require zendframework/zend-filter
132132
Note: the above assumes you have already installed zend-component-installer, per
133133
the section above on [dependency reduction](#dependency-reduction).
134134

135+
## Form integration
136+
137+
In version 2, zend-mvc exposed several facilities related to zend-form:
138+
139+
- `FormElementManager` mapped to a factory in zend-mvc, but created a
140+
`Zend\Form\FormElementManager` instance.
141+
- `FormAnnotationBuilder` mapped to a factory in zend-mvc, but created a
142+
`Zend\Form\Annotation\AnnotationBuilder` instance.
143+
- The `ServiceListenerFactory` registered `Zend\Form\FormAbstractServiceFactory`
144+
as an abstract factory.
145+
- The `ModuleManagerFactory` registered specifications with the
146+
zend-modulemanager `ServiceListener` to allow modules to provide form element
147+
configuration.
148+
149+
The above functionality is now removed from zend-mvc, and exposed directly by
150+
the [zend-form](https://github.com/zendframework/zend-form) component. To
151+
add/enable it, install zend-form:
152+
153+
```bash
154+
$ composer require zendframework/zend-form
155+
```
156+
157+
Note: the above assumes you have already installed zend-component-installer, per
158+
the section above on [dependency reduction](#dependency-reduction).
159+
135160
## Hydrator integration
136161

137162
In version 2, zend-mvc exposed a `HydratorManager` service by default, and

src/Service/FormAnnotationBuilderFactory.php

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)