From baaea70d12ce85f95f3d211e31290da7568f51fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Mon, 25 Aug 2014 15:25:09 +0200 Subject: [PATCH] renamed webreader loadUrl method to getUrl to represent action by name -> deprecated old name --- application/core/Utils/WebReader.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/application/core/Utils/WebReader.php b/application/core/Utils/WebReader.php index eb78e62e..2f6d12b6 100644 --- a/application/core/Utils/WebReader.php +++ b/application/core/Utils/WebReader.php @@ -22,7 +22,7 @@ abstract class WebReader { * @param callable $function * @return Response */ - public static function loadUrl($url, callable $function = null) { + public static function getUrl($url, callable $function = null) { $request = static::newRequest($url); $response = $request->send(); if ($function) { @@ -31,6 +31,17 @@ abstract class WebReader { return $response; } + /** + * @deprecated + * @see WebReader::getUrl() + */ + public static function loadUrl($url, callable $function = null) { + if ($function) { + return static::getUrl($url, $function); + } + return static::getUrl($url); + } + /** * Create a new cURL Request for the given URL *