Psr\Log\LoggerInterface to the types that the plugin factory supplies by default.

This commit is contained in:
steve.brazier 2014-03-10 12:27:17 +00:00
parent 24b5bc549d
commit 9c24fbaecb

View file

@ -353,6 +353,15 @@ class Builder implements LoggerAwareInterface
'PHPCI\Model\Build'
);
$logger = $this->logger;
$pluginFactory->registerResource(
function () use ($logger) {
return $logger;
},
null,
'Psr\Log\LoggerInterface'
);
$pluginFactory->registerResource(
function () use ($self) {
$factory = new MailerFactory($self->getSystemConfig('phpci'));