Skip to content

Conversation

@GwendolenLynch
Copy link
Contributor

Definitely a 🐨 derp.

Controller test also now checks a route, hence the require-dev of symfony/brower-kit

Copy link
Contributor

@linaori linaori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides of 2 minor things, it looks good to me


public function action(Request $request, HandlerFactoryInterface $factory)
{
$handler = $factory->create(HandlerType\SimpleFormHandler::class);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a use statement for this one? Makes it easier to see where it's actually coming from

Hostnet\Bundle\FormHandlerBundle\Registry\LegacyHandlerRegistry: '@hostnet.form_handler.registry'
Hostnet\Component\Form\FormProviderInterface: '@form_handler.provider.simple'
Hostnet\Component\Form\Simple\SimpleFormProvider: '@form_handler.provider.simple'
Hostnet\Component\FormHandler\HandlerRegistryInterface: '@hostnet.form_handler.registry'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the registry can be safely removed as it shouldn't be used by someone else and we don't use autowiring in the bundle

@GwendolenLynch
Copy link
Contributor Author

Yeah, wasn't sure on the registry one, and felt it needed "on the record" commentary 😉

Both changes made!

@hboomsma hboomsma merged commit 5bff004 into hostnet:master Dec 17, 2017
@GwendolenLynch GwendolenLynch deleted the service-aliases branch December 17, 2017 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants