mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Refactor Appbox
This commit is contained in:
@@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user