Skip to content

Commit

Permalink
Update ErrorCollectorExtension.php
Browse files Browse the repository at this point in the history
  • Loading branch information
1josefnevoral committed Jul 10, 2014
1 parent 522ec4d commit d911475
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ErrorCollectorExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class ErrorCollectorExtension extends Nette\DI\CompilerExtension {
private $defaults = array(
'logDirectory' => '%appDir%/../log/',
'errorStorage' => '\HQ\ErrorCollector\Storage\S3Storage',
'bucket' => 'hq-error-log'
's3' => array(
'bucket' => 'hq-error-log'
)
);

public function loadConfiguration()
Expand All @@ -34,7 +36,7 @@ public function loadConfiguration()
$builder->addDefinition($this->prefix('storage'))
->setClass('HQ\ErrorCollector\Storage\S3Storage', array(
'projectName' => $config['projectName'],
's3Bucket' => $config['bucket'],
's3Bucket' => $config['s3']['bucket'],
's3Proxy' => '@errorCollector.S3Proxy'
));
}
Expand All @@ -45,4 +47,4 @@ public function loadConfiguration()
'errorStorage' => '@errorCollector.storage'
));
}
}
}

0 comments on commit d911475

Please sign in to comment.