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

Commit 6a28ebe

Browse files
committed
Merge branch 'feature/remove-zend-form' into develop
Close #124
2 parents 410375b + 3ad2c2d commit 6a28ebe

11 files changed

+32
-470
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ for full details on how to migrate your v2 application.
8686
functionality related to exposing and configuring the zend-inputfilter
8787
`InputFilterManager`. That functionality is now exposed directly by the
8888
zend-inputfilter component.
89+
- [#124](https://github.com/zendframework/zend-mvc/pull/124) removes the
90+
functionality related to exposing and configuring zend-form, including the
91+
`FormElementManager`, `FormAnnotationBuilder`, and the
92+
`FormAbstractServiceFactory`. The functionality is now exposed directly by the
93+
zend-form component.
8994

9095
### Fixed
9196

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)