Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/4742' into develop
Browse files Browse the repository at this point in the history
Close #4742
  • Loading branch information
weierophinney committed Jun 28, 2013
2 parents c48de35 + cca992e commit 843ddf6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions library/Zend/Log/LoggerAwareInterface.php
Expand Up @@ -16,5 +16,19 @@
*/
interface LoggerAwareInterface
{
/**
* Set logger instance
*
* @param LoggerInterface
* @return void
*/
public function setLogger(LoggerInterface $logger);

/**
* Get logger instance. Currently commented out as this would possibly break
* existing implementations.
*
* @return null|LoggerInterface
*/
// public function getLogger();
}
10 changes: 10 additions & 0 deletions library/Zend/Log/LoggerAwareTrait.php
Expand Up @@ -30,4 +30,14 @@ public function setLogger(LoggerInterface $logger)

return $this;
}

/**
* Get logger object
*
* @return null|LoggerInterface
*/
public function getLogger()
{
return $this->logger;
}
}

0 comments on commit 843ddf6

Please sign in to comment.