I have a qeustion.
I have 2 bundles:
1: CaravanBundle
2: LepapillonBleuBundle
I want to overriding the Security view in the LepapillonBleuBundle.
The rest of the views like /profile and /profile/edit must be in the CaravanBundle.
But what is the best way to do this?
I was thinking about:
- Code: Select all
<?php
namespace MV\CaravanBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class MVCaravanBundle extends Bundle
{
public function getParent()
{
return 'FOSUserBundle';
}
}
- Code: Select all
<?php
namespace MV\LepapillonBleuBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class MVLepapillonBleuBundle extends Bundle
{
public function getParent()
{
return 'MVCaravanBundle';
}
}
So I can overwrite the Security/login.html.twig file.. but that doesn't works (no errors but just showing the login from the CaravanBundle).
overriding like what wont work, because I also overwrite the configs etc...
But how must/can I do this?
