Refactor Appbox

This commit is contained in:
Romain Neutron
2012-02-21 16:10:16 +01:00
parent 1d6eb86c90
commit e217a49f6a
6 changed files with 7 additions and 7 deletions

View File

@@ -253,7 +253,7 @@ class Basket
{ {
if ($this->getPusherId()) if ($this->getPusherId())
{ {
return new \User_Adapter($this->getPusherId(), \appbox::get_instance()); return new \User_Adapter($this->getPusherId(), \appbox::get_instance(\bootstrap::getCore()));
} }
} }
@@ -266,7 +266,7 @@ class Basket
{ {
if ($this->getUsrId()) if ($this->getUsrId())
{ {
return new \User_Adapter($this->getUsrId(), \appbox::get_instance()); return new \User_Adapter($this->getUsrId(), \appbox::get_instance(\bootstrap::getCore()));
} }
} }

View File

@@ -149,7 +149,7 @@ class StoryWZ
{ {
if ($this->getUsrId()) if ($this->getUsrId())
{ {
return new \User_Adapter($this->getUsrId(), \appbox::get_instance()); return new \User_Adapter($this->getUsrId(), \appbox::get_instance(\bootstrap::getCore()));
} }
} }

View File

@@ -136,7 +136,7 @@ class UsrListEntry
public function getUser() public function getUser()
{ {
return \User_Adapter::getInstance($this->getUsrId(), \appbox::get_instance()); return \User_Adapter::getInstance($this->getUsrId(), \appbox::get_instance(\bootstrap::getCore()));
} }
public function setUser(\User_Adapter $user) public function setUser(\User_Adapter $user)
{ {

View File

@@ -172,7 +172,7 @@ class UsrListOwner
public function getUser() public function getUser()
{ {
return \User_Adapter::getInstance($this->getUsrId(), \appbox::get_instance()); return \User_Adapter::getInstance($this->getUsrId(), \appbox::get_instance(\bootstrap::getCore()));
} }
} }

View File

@@ -164,7 +164,7 @@ class ValidationParticipant
public function getUser() public function getUser()
{ {
return \User_Adapter::getInstance($this->getUsrId(), \appbox::get_instance()); return \User_Adapter::getInstance($this->getUsrId(), \appbox::get_instance(\bootstrap::getCore()));
} }
/** /**

View File

@@ -329,7 +329,7 @@ class ValidationSession
{ {
if ($this->initiator_id) if ($this->initiator_id)
{ {
return \User_Adapter::getInstance($this->initiator_id, \appbox::get_instance()); return \User_Adapter::getInstance($this->initiator_id, \appbox::get_instance(\bootstrap::getCore()));
} }
} }