|
6 | 6 | use Doctrine\Common\Persistence\ObjectManager;
|
7 | 7 | use Doctrine\ORM\Mapping\ClassMetadata;
|
8 | 8 | use DoctrineORMModule\Form\Element\EntitySelect;
|
9 |
| -use Zend\EventManager\AbstractListenerAggregate; |
10 |
| -use Zend\EventManager\EventInterface; |
11 |
| -use Zend\EventManager\EventManagerInterface; |
12 |
| -use Zend\Form\Element as ZendFormElement; |
| 9 | +use Laminas\EventManager\AbstractListenerAggregate; |
| 10 | +use Laminas\EventManager\EventInterface; |
| 11 | +use Laminas\EventManager\EventManagerInterface; |
| 12 | +use Laminas\Form\Element as LaminasFormElement; |
13 | 13 |
|
14 | 14 | /**
|
15 | 15 | * @author Kyle Spraggs <[email protected]>
|
@@ -267,27 +267,27 @@ public function handleTypeField(EventInterface $event)
|
267 | 267 | case 'bigint':
|
268 | 268 | case 'integer':
|
269 | 269 | case 'smallint':
|
270 |
| - $type = ZendFormElement\Number::class; |
| 270 | + $type = LaminasFormElement\Number::class; |
271 | 271 | break;
|
272 | 272 | case 'bool':
|
273 | 273 | case 'boolean':
|
274 |
| - $type = ZendFormElement\Checkbox::class; |
| 274 | + $type = LaminasFormElement\Checkbox::class; |
275 | 275 | break;
|
276 | 276 | case 'date':
|
277 |
| - $type = ZendFormElement\Date::class; |
| 277 | + $type = LaminasFormElement\Date::class; |
278 | 278 | break;
|
279 | 279 | case 'datetimetz':
|
280 | 280 | case 'datetime':
|
281 |
| - $type = ZendFormElement\DateTime::class; |
| 281 | + $type = LaminasFormElement\DateTime::class; |
282 | 282 | break;
|
283 | 283 | case 'time':
|
284 |
| - $type = ZendFormElement\Time::class; |
| 284 | + $type = LaminasFormElement\Time::class; |
285 | 285 | break;
|
286 | 286 | case 'text':
|
287 |
| - $type = ZendFormElement\Textarea::class; |
| 287 | + $type = LaminasFormElement\Textarea::class; |
288 | 288 | break;
|
289 | 289 | default:
|
290 |
| - $type = ZendFormElement::class; |
| 290 | + $type = LaminasFormElement::class; |
291 | 291 | break;
|
292 | 292 | }
|
293 | 293 |
|
@@ -330,7 +330,7 @@ public function handleValidatorField(EventInterface $event)
|
330 | 330 | case 'string':
|
331 | 331 | $elementSpec = $event->getParam('elementSpec');
|
332 | 332 | if (isset($elementSpec['spec']['type']) &&
|
333 |
| - in_array($elementSpec['spec']['type'], ['File', 'Zend\Form\Element\File']) |
| 333 | + in_array($elementSpec['spec']['type'], ['File', 'Laminas\Form\Element\File']) |
334 | 334 | ) {
|
335 | 335 | return;
|
336 | 336 | }
|
|
0 commit comments