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:
-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