mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
Remove DiceContainer::fromDice()
This commit is contained in:
parent
320fe18654
commit
c762c62029
2 changed files with 1 additions and 42 deletions
|
@ -27,7 +27,7 @@ final class DiceContainer implements Container
|
|||
|
||||
$dice = (new Dice())->addRules(require($path));
|
||||
|
||||
return static::fromDice($dice);
|
||||
return new self($dice);
|
||||
}
|
||||
|
||||
private Dice $container;
|
||||
|
@ -37,18 +37,6 @@ final class DiceContainer implements Container
|
|||
$this->container = $container;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an instance with Dice
|
||||
*
|
||||
* @param Dice $container
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public static function fromDice(Dice $container): self
|
||||
{
|
||||
return new self($container);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize the container with the given parameters
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue