diff options
-rw-r--r-- | core/StaticContainer.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/StaticContainer.php b/core/StaticContainer.php index 35f486d801..49b025fa5b 100644 --- a/core/StaticContainer.php +++ b/core/StaticContainer.php @@ -43,6 +43,9 @@ 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"); + } $builder = new ContainerBuilder(); // TODO add cache |