From: Art4 Date: Thu, 9 Jan 2025 13:35:03 +0000 (+0000) Subject: Remove Container::setup() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2ef943394d7d824f05198bc96de86eaecc163ddb;p=friendica.git Remove Container::setup() --- diff --git a/src/Core/Container.php b/src/Core/Container.php index 8d69799122..1017590a85 100644 --- a/src/Core/Container.php +++ b/src/Core/Container.php @@ -14,15 +14,6 @@ namespace Friendica\Core; */ interface Container { - /** - * Initialize the container with the given parameters - * - * @deprecated - * - * @return void - */ - public function setup(): void; - /** * Returns a fully constructed object based on $name using $args and $share as constructor arguments if supplied * @param string $name name The name of the class to instantiate diff --git a/src/Core/DiceContainer.php b/src/Core/DiceContainer.php index acbb0862b9..304c1e411d 100644 --- a/src/Core/DiceContainer.php +++ b/src/Core/DiceContainer.php @@ -32,18 +32,6 @@ final class DiceContainer implements Container $this->container = $container; } - /** - * Initialize the container with the given parameters - * - * @deprecated - * - * @return void - */ - public function setup(): void - { - // this method can be removed - } - /** * Returns a fully constructed object based on $name using $args and $share as constructor arguments if supplied * @param string $name name The name of the class to instantiate