Created
July 12, 2012 02:37
-
-
Save koriym/3095324 to your computer and use it in GitHub Desktop.
@PostConstruct initialize dependency.
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
/** | |
* @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