Created
May 16, 2011 15:34
-
-
Save jmoz/974666 to your computer and use it in GitHub Desktop.
Logger observer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class ClientSymfonyLoggerObserver implements SplObserver { | |
| private function update(SplSubject $subject) { | |
| sfContext::getInstance()->getLogger()->info("Calling service " . get_class($subject->getService()) . " with url {$subject->getService()->getUrl()}"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment