StrikoMirko
StrikoMirko

Reputation: 415

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.

Upvotes: 3

Views: 78

Answers (2)

Ziumin
Ziumin

Reputation: 4860

You can inherit only 1 bundle with getParent().

The possible solutions:

Upvotes: 2

Sethunath K M
Sethunath K M

Reputation: 4761

Symfony does not allow multiple inheritance

Upvotes: 0

Related Questions