Skip to content

Instantly share code, notes, and snippets.

@koriym
Created July 12, 2012 02:37
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 koriym/3095324 to your computer and use it in GitHub Desktop.
Save koriym/3095324 to your computer and use it in GitHub Desktop.
@PostConstruct initialize dependency.
/**
* @Inject
*/
public function __construct(HttpRequest $request)
{
$this->request = request;
}
/**
* @PostConstruct
*/
public function init()
{
$this->request->setToken(self::TOKEN);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment