[英]Symfony2 inheriting more than one bundle
how can I inherit more than one bundle? 我怎样才能继承多个捆绑包?
I've searched everywhere but nothing :(. 我到处都搜索,但没有:(。
Code for inheriting one bundle which everybody probably knows 继承每个人可能知道的一个包的代码
public function getParent()
{
return 'FOSUserBundle';
}
Now i want to inherit KnpKnpPaginatorBundle
also, so i can change the sliding.html.twig
for my own personal needs. 现在我想继承KnpKnpPaginatorBundle
,所以我可以根据自己的个人需要更改sliding.html.twig
。
You can inherit only 1 bundle with getParent(). 您只能使用getParent()继承1个bundle。
The possible solutions: 可能的解决方案:
Symfony不允许多重继承
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.