Returns a bundle and optionally its descendants by its name.
public getBundle ( string $name, boolean $first = true ) : Symfony\Component\HttpKernel\Bundle\BundleInterface | Array | ||
$name | string | Bundle name |
$first | boolean | Whether to return the first bundle only or together with its descendants |
return | Symfony\Component\HttpKernel\Bundle\BundleInterface | Array | A BundleInterface instance or an array of BundleInterface instances if $first is false |