diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-11-04 09:07:10 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-11-04 09:07:10 +0300 |
commit | 4752a708c60a37020b615f5b3767633c75d7fab8 (patch) | |
tree | 1268008a4e82e94395167d0a1d8ad1d36046a0b6 | |
parent | 2e38c89df811db481a13eae0419f0268d69b2dcd (diff) |
When PHP-DI not found, hint user to composer update
-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 |