From 2ef943394d7d824f05198bc96de86eaecc163ddb Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 9 Jan 2025 13:35:03 +0000 Subject: [PATCH] Remove Container::setup() --- src/Core/Container.php | 9 --------- src/Core/DiceContainer.php | 12 ------------ 2 files changed, 21 deletions(-) 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