craue / CraueFormFlowBundle

Multi-step forms for your Symfony project.
MIT License
736 stars 118 forks source link

Service "App\Form\RegistrationFlow" not found: even though it exists in the app's container #384

Closed MikeDrag closed 3 years ago

MikeDrag commented 3 years ago
 Services.yaml
    App\Form\RegistrationFlow:
        parent: craue.form.flow
        public: true
        autowire: true
        autoconfigure: false
        Controller: 
            $formData = new User(); // Your form data class. Has to be an object, won't work properly with an array.
        $flow = $this->get('App\Form\RegistrationFlow');
        $flow->bind($formData);

        // form of the current step
        $form = $flow->createForm();

Version symfony 5.2.

Why is this happening? I followed the documentation. Thanks