Undefined namespace UserBundle while generate FOS

38 views
Skip to first unread message

TheKingOfSnak

unread,
Oct 21, 2016, 4:33:15 AM10/21/16
to sonata-users
Hey, i'm doing 
"bin/console sonata:easy-extends:generate FOSUserBundle"
but i get Undefined namespace UserBundle on my AppKernel.php..
Help me please ! Symfony 3.1!

Jakala

unread,
Oct 21, 2016, 5:08:44 AM10/21/16
to sonata-users
hello,

Maybe you have not added the "new FOS\UserBundle\FOSUserBundle()" in your AppKernel???

perhaps you must extends only SonataUserBundle instead of FOSUserBundle...

TheKingOfSnak .

unread,
Oct 21, 2016, 5:16:17 AM10/21/16
to sonata...@googlegroups.com

SF 3 and fos + sonata user bundle dont work together ?


--
You received this message because you are subscribed to a topic in the Google Groups "sonata-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonata-users/eQnuw4myMG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonata-users+unsubscribe@googlegroups.com.
To post to this group, send email to sonata...@googlegroups.com.
Visit this group at https://groups.google.com/group/sonata-users.
For more options, visit https://groups.google.com/d/optout.

Jakala

unread,
Oct 21, 2016, 5:25:48 AM10/21/16
to sonata-users
yes. Sonata User Bundle is a layer over Fos User. 


On Friday, October 21, 2016 at 11:16:17 AM UTC+2, TheKingOfSnak wrote:

SF 3 and fos + sonata user bundle dont work together ?

Le 21 oct. 2016 11:08, "Jakala" <jaka...@gmail.com> a écrit :
hello,

Maybe you have not added the "new FOS\UserBundle\FOSUserBundle()" in your AppKernel???

perhaps you must extends only SonataUserBundle instead of FOSUserBundle...


On Friday, October 21, 2016 at 10:33:15 AM UTC+2, TheKingOfSnak wrote:
Hey, i'm doing 
"bin/console sonata:easy-extends:generate FOSUserBundle"
but i get Undefined namespace UserBundle on my AppKernel.php..
Help me please ! Symfony 3.1!

--
You received this message because you are subscribed to a topic in the Google Groups "sonata-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonata-users/eQnuw4myMG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonata-users...@googlegroups.com.

Cassiano Tartari

unread,
Oct 21, 2016, 5:33:41 AM10/21/16
to sonata-users
Yes but you should check versions, as far as I know there were some issues using latest versions of both. Last time that I've tried, 3 months ago, I gave up of SonataUserBundle and coded my own user bundle based on SonataUserBundle and latest version of FOSUserBundle

Att.,
Cassiano Tartari

--
You received this message because you are subscribed to the Google Groups "sonata-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonata-users+unsubscribe@googlegroups.com.

Cassiano Tartari

unread,
Oct 21, 2016, 5:35:35 AM10/21/16
to sonata-users
Reply all
Reply to author
Forward
0 new messages