From d1027c4efb6166e638ee2887976bbf9cd8a2287e Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 7 Jul 2017 21:47:14 +0700 Subject: [PATCH] remove getRegistry() and unsetRegistry() that E_USER_DEPRECATED at Registry Placeholder --- src/Helper/Placeholder/Registry.php | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/Helper/Placeholder/Registry.php b/src/Helper/Placeholder/Registry.php index d1d3f6ef..f1beb8ff 100644 --- a/src/Helper/Placeholder/Registry.php +++ b/src/Helper/Placeholder/Registry.php @@ -37,34 +37,6 @@ class Registry */ protected $items = []; - /** - * Retrieve or create registry instance - * - * @return Registry - */ - public static function getRegistry() - { - trigger_error('Placeholder view helpers should no longer use a singleton registry', E_USER_DEPRECATED); - if (null === static::$instance) { - static::$instance = new static(); - } - - return static::$instance; - } - - /** - * Unset the singleton - * - * Primarily useful for testing purposes; sets {@link $instance} to null. - * - * @return void - */ - public static function unsetRegistry() - { - trigger_error('Placeholder view helpers should no longer use a singleton registry', E_USER_DEPRECATED); - static::$instance = null; - } - /** * Set the container for an item in the registry *