Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

Registration Service attempts to get form from service locator when it is actually part of the form element manager #23

@AydinHassan

Description

@AydinHassan

I was looking over the code and noticed that the registration form factory is defined in the form element manager configuration:

https://github.com/Bacon/BaconUser/blob/master/config/module.config.php#L40

However, the form registration service attempts to get the form from the service manager: https://github.com/Bacon/BaconUser/blob/master/src/BaconUser/Service/Factory/RegistrationServiceFactory.php#L31

There is no 'BaconUser\Form\RegistrationForm' key in the service manager configuration. I'm sure the form should be instantiated by the form element manager:

Like so:
$serviceLocator->get('FormElementManager')->get('BaconUser\Form\RegistrationForm')

I could be wrong and haven't tested anything, merely an observation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions