froala / KMSFroalaEditorBundle

Symfony bundle for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
105 stars 33 forks source link

Attempted to load class "Inflector" from namespace "Doctrine\Common\Util". #87

Closed timoziemann closed 4 years ago

timoziemann commented 5 years ago

Hi,

I have an issue on Symfony 4.2.8 and current dev-master with this line: $p_view->vars [ "arrOption" ][ "pluginsEnabled" ] = $this->m_pluginProvider->obtainArrPluginCamelized( $arrPlugin );

Bildschirmfoto 2019-05-17 um 13 43 24

Occurs when rendering the form in a twig template. If I comment out the line, it's working fine. Adding the field to my form with this:

$builder->add('text', FroalaEditorType::class, [ 'label' => 'Inhalt', ]);

jmsche commented 4 years ago

@sguionni This is now fixed with v3 as doctrine/inflector is required in composer.json file

sguionni commented 4 years ago

Thanks!