Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-11-04 09:07:10 +0300
committermattab <matthieu.aubry@gmail.com>2014-11-04 09:07:10 +0300
commit4752a708c60a37020b615f5b3767633c75d7fab8 (patch)
tree1268008a4e82e94395167d0a1d8ad1d36046a0b6
parent2e38c89df811db481a13eae0419f0268d69b2dcd (diff)
When PHP-DI not found, hint user to composer update
-rw-r--r--core/StaticContainer.php3
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