Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created July 9, 2014 08:20
Show Gist options
  • Save StanAngeloff/b29cf3b91a4abfedf8c9 to your computer and use it in GitHub Desktop.
Save StanAngeloff/b29cf3b91a4abfedf8c9 to your computer and use it in GitHub Desktop.
<?php
class Klass
{
# {{{ LoggerAwareInterface
/**
* {@inheritdoc}
*/
public function setLogger(LoggerInterface $logger)
{
if ($this->client instanceof LoggerAwareInterface) {
$this->client->setLogger($logger);
}
if ($this->mediator instanceof LoggerAwareInterface) {
$this->mediator->setLogger($logger);
}
}
# }}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment