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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-12-01 04:41:22 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-12-01 04:41:39 +0300
commit583c6dbac980fabd23a278ecf6e96ecefcb587c5 (patch)
treef5bbdc5b5085d03f1e4356448bbc032f8f6b2387 /core/Container
parent77e537b19f2a36b6b723bd09c7509ee3af1d6e2b (diff)
DI container: disable the use of annotations
Diffstat (limited to 'core/Container')
-rw-r--r--core/Container/StaticContainer.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/Container/StaticContainer.php b/core/Container/StaticContainer.php
index 5948ec1c78..b46f01e1ca 100644
--- a/core/Container/StaticContainer.php
+++ b/core/Container/StaticContainer.php
@@ -44,11 +44,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());