mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14670] Fix incompatibilities with container definitions
PHPBB3-14670
This commit is contained in:
parent
653305d461
commit
1a8a8da7bf
1 changed files with 7 additions and 2 deletions
|
@ -23,11 +23,11 @@ class phpbb_mock_container_builder implements ContainerInterface
|
|||
*
|
||||
* @param string $id The service identifier
|
||||
* @param object $service The service instance
|
||||
* @param string $scope The scope of the service
|
||||
* @param bool $shared Whether service is shared
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function set($id, $service, $scope = self::SCOPE_CONTAINER)
|
||||
public function set($id, $service, $shared = false)
|
||||
{
|
||||
$this->services[$id] = $service;
|
||||
}
|
||||
|
@ -193,4 +193,9 @@ class phpbb_mock_container_builder implements ContainerInterface
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function initialized($id)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue