Psr\Log\LoggerInterface to the types that the plugin factory supplies by default.
This commit is contained in:
parent
fe7805a5a6
commit
96319f52c2
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue