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

Commit 140b11d

Browse files
committed
Fix for fatal error
Zend framework 2.5.3: Fatal error: Uncaught Error: Call to undefined method Zend\ServiceManager\ServiceManager::build() in /data/vendor/zendframework/zend-mvc/src/Service/FormAnnotationBuilderFactory.php on line 34 Build is not a method defined on the interface passed in so shouldn't be called regardless
1 parent 53a9e78 commit 140b11d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Service/FormAnnotationBuilderFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public function __invoke(ContainerInterface $container, $name, array $options =
3131
{
3232
//setup a form factory which can use custom form elements
3333
$annotationBuilder = new AnnotationBuilder();
34-
$eventManager = $container->build('EventManager');
35-
$annotationBuilder->setEventManager($ventManager);
34+
$eventManager = $container->get('EventManager');
35+
$annotationBuilder->setEventManager($eventManager);
3636

3737
$formElementManager = $container->get('FormElementManager');
3838
$formElementManager->injectFactory($container, $annotationBuilder);

0 commit comments

Comments
 (0)