- $username = $this->deps->urlGen->loadUsername();
- $guid = $this->deps->urlGen->loadGuid();
- $oauth = new OAuth();
- $oauth->setDeps($this->deps);
- $oauth->verifyOAuthUser($username, $this->deps->urlGen->note($username, $guid));
-
- $note = $this->deps->notes->load($username, $guid, false);
+ $deps = Dependencies::get();
+ $username = $deps->urlGen->loadUsername();
+ $guid = $deps->urlGen->loadGuid();
+ $oauth = new \OAuth();
+ $oauth->setDeps($deps);
+ $oauth->verifyOAuthUser($username, $deps->urlGen->note($username, $guid));
+
+ $note = $deps->notes->load($username, $guid, false);