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