Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form types extensions doesn't work #34

Open
zquintana opened this issue Jul 31, 2019 · 2 comments
Open

Form types extensions doesn't work #34

zquintana opened this issue Jul 31, 2019 · 2 comments

Comments

@zquintana
Copy link

Last part of the documentation about adding form types, doesn't seem to work. I can't see were that is implemented in the code here.

@kennaar
Copy link

kennaar commented Aug 21, 2019

I'm having the same issue on the latest version of this package.

@everon
Copy link

everon commented Jan 8, 2021

Worked around this by using the following in a provider, also allows usage of the Doctrine EntityType.

// In service provider register method

$this->app->extend('form.extensions', function($extensions, $app){
   $extensions[] = app(DoctrineOrmExtension::class);

   return $extensions;
});

Down side to this approach is you need to create an actual extension but in theory you can have one extension and keep adding to it.

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

No branches or pull requests

3 participants