-
Notifications
You must be signed in to change notification settings - Fork 5
Namespaced twig syntax for views #13
Namespaced twig syntax for views #13
Conversation
Any news on this? |
@@ -3,8 +3,7 @@ | |||
namespace Beelab\UserBundle\Controller; | |||
|
|||
use Psr\Log\LoggerInterface; | |||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | |||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |||
use Symfony\Component\Routing\Annotation\Route; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in the wrong place and it does not respect sorting. Please move it after "use Symfony\Component\HttpFoundation\Request"
@@ -5,8 +5,7 @@ | |||
use Beelab\UserBundle\Event\FormEvent; | |||
use Beelab\UserBundle\Event\UserEvent; | |||
use Beelab\UserBundle\Manager\UserManagerInterface; | |||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | |||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |||
use Symfony\Component\Routing\Annotation\Route; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
@@ -2,12 +2,10 @@ | |||
|
|||
namespace Beelab\UserBundle\User; | |||
|
|||
use Symfony\Component\Security\Core\User\AdvancedUserInterface; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! sorry about the delay.
It's been a while, but if i recall correclty it was a deprecated call.
Feel free to refuse it if you find this contribution useless.
regards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, AdvancedUserInterface was deprecated.
Anyway, this change should be in a different PR
Bump |
This is here for a long time, a bit too much IMHO. |
Same as previously done for BeelabUserPasswordBundle:
Templates can't be overriden without the namespaced twig syntax anymore.
ie : change 'BeelabUserBundle:User:index.html.twig' to '@BeelabUser/User/index.html.twig' must solve the issue.
I also did fix deprecated dependencies to
@Method
and@Route
and a deprecated call toAdvancedUserInterface
.