=Minor chnage: replaced function by method

This commit is contained in:
Besnik Br 2012-09-10 20:40:01 +02:00
parent 2e7e296fec
commit 3648abea9b

View File

@ -232,7 +232,7 @@ abstract class Kernel implements KernelInterface
public function getBundle($name, $first = true) public function getBundle($name, $first = true)
{ {
if (!isset($this->bundleMap[$name])) { if (!isset($this->bundleMap[$name])) {
throw new \InvalidArgumentException(sprintf('Bundle "%s" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() function of your %s.php file?', $name, get_class($this))); throw new \InvalidArgumentException(sprintf('Bundle "%s" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() method of your %s.php file?', $name, get_class($this)));
} }
if (true === $first) { if (true === $first) {