diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-01 04:46:06 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-01 04:46:06 +0300 |
commit | 17fc0b77f7be4aff4d8f748d7d9c01bc23828eb3 (patch) | |
tree | 19a6711157e05d18d5d5adee8852bab94538232c /core/Container | |
parent | 0f435ee9617020dc23accd4efa393afe6c570396 (diff) | |
parent | 583c6dbac980fabd23a278ecf6e96ecefcb587c5 (diff) |
Merge branch 'master' into log-refactoring-1
Diffstat (limited to 'core/Container')
-rw-r--r-- | core/Container/StaticContainer.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/Container/StaticContainer.php b/core/Container/StaticContainer.php index 39a6552ef6..96a3742317 100644 --- a/core/Container/StaticContainer.php +++ b/core/Container/StaticContainer.php @@ -49,11 +49,14 @@ class StaticContainer */ 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()); |