You are here

public function KernelInterface::getBundle in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/KernelInterface.php \Symfony\Component\HttpKernel\KernelInterface::getBundle()

Returns a bundle and optionally its descendants by its name.

Parameters

string $name Bundle name:

bool $first Whether to return the first bundle only or together with its descendants:

Return value

BundleInterface|BundleInterface[] A BundleInterface instance or an array of BundleInterface instances if $first is false

Throws

\InvalidArgumentException when the bundle is not enabled

1 method overrides KernelInterface::getBundle()
Kernel::getBundle in vendor/symfony/http-kernel/Kernel.php
Returns a bundle and optionally its descendants by its name.

File

vendor/symfony/http-kernel/KernelInterface.php, line 81

Class

KernelInterface
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

public function getBundle($name, $first = true);