Skip to content

Commit

Permalink
DI container: disable the use of annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Dec 1, 2014
1 parent 77e537b commit 583c6db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/Container/StaticContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ public static function getContainer()
*/
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());

Expand Down

0 comments on commit 583c6db

Please sign in to comment.