Skip to content

Instantly share code, notes, and snippets.

@jmoz
Created May 16, 2011 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmoz/974659 to your computer and use it in GitHub Desktop.
Save jmoz/974659 to your computer and use it in GitHub Desktop.
Action observer
<?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