public function __destruct() { DependencyRepository::delete($this->requestRef); }
/** * @return Database|null */ public function database() { return DependencyRepository::get($this->databaseId); }
public function bindDatabase(Database\Contract $client = null) { $this->databaseRefId = DependencyRepository::add($client); return $this; }
public function log(Log $log = null) { $this->logResourceId = \Yaoi\DependencyRepository::add($log); return $this; }