diff --git a/core/Container/StaticContainer.php b/core/Container/StaticContainer.php index 5948ec1c780..b46f01e1ca7 100644 --- a/core/Container/StaticContainer.php +++ b/core/Container/StaticContainer.php @@ -44,11 +44,14 @@ public static function getContainer() */ private static function createContainer() { - if (!class_exists("DI\\ContainerBuilder")) { - throw new \Exception("DI\\ContainerBuilder could not be found, maybe you are using Piwik from git and need to update Composer. $ php composer.phar update"); + if (!class_exists('DI\ContainerBuilder')) { + throw new \Exception('DI\ContainerBuilder could not be found, maybe you are using Piwik from git and need to update Composer: php composer.phar update'); } + $builder = new ContainerBuilder(); + $builder->useAnnotations(false); + // TODO set a better cache $builder->setDefinitionCache(new ArrayCache());