简体   繁体   中英

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.

You can inherit only 1 bundle with getParent().

The possible solutions:

Symfony不允许多重继承

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM