Created
May 16, 2011 15:32
-
-
Save jmoz/974659 to your computer and use it in GitHub Desktop.
Action observer
This file contains 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 WebServiceActions extends sfActions { | |
public function executeWebServiceCall(sfWebRequest $request) { | |
$client = new ServiceClient(new FooService(), new Http()); | |
$client->attach(new ClientSymfonyLoggerObserver()); | |
$this->renderText($client->call()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment