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

Remove zend-form dependency #124

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"container-interop/container-interop": "^1.1"
},
"require-dev": {
"zendframework/zend-form": "^2.7",
"zendframework/zend-json": "^2.6.1 || ^3.0",
"zendframework/zend-psr7bridge": "^0.2",
"fabpot/php-cs-fixer": "1.7.*",
Expand Down
252 changes: 2 additions & 250 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions doc/book/migration/to-v3-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,31 @@ $ composer require zendframework/zend-filter
Note: the above assumes you have already installed zend-component-installer, per
the section above on [dependency reduction](#dependency-reduction).

## Form integration

In version 2, zend-mvc exposed several facilities related to zend-form:

- `FormElementManager` mapped to a factory in zend-mvc, but created a
`Zend\Form\FormElementManager` instance.
- `FormAnnotationBuilder` mapped to a factory in zend-mvc, but created a
`Zend\Form\Annotation\AnnotationBuilder` instance.
- The `ServiceListenerFactory` registered `Zend\Form\FormAbstractServiceFactory`
as an abstract factory.
- The `ModuleManagerFactory` registered specifications with the
zend-modulemanager `ServiceListener` to allow modules to provide form element
configuration.

The above functionality is now removed from zend-mvc, and exposed directly by
the [zend-form](https://github.com/zendframework/zend-form) component. To
add/enable it, install zend-form:

```bash
$ composer require zendframework/zend-form
```

Note: the above assumes you have already installed zend-component-installer, per
the section above on [dependency reduction](#dependency-reduction).

## Hydrator integration

In version 2, zend-mvc exposed a `HydratorManager` service by default, and
Expand Down
80 changes: 0 additions & 80 deletions src/Service/FormAnnotationBuilderFactory.php

This file was deleted.

Loading