What to replace deprecated Class 'Zend_Rest_Client' with in Magento 2.3?Magento2 - SOAP API not authorized issueClassnames 'Void' inside vendor/magento/Class Mage not found in Magento 2basic php test in magento using module class, driving me crazy!Magento 2 - Add additional constructor argument widget block classMagento 2: How to create API rest for users CRUDClass not found even exist on Magento 2How to see all the observers currently registered?Can't Access Checkout PageUncaught Error: Class 'GuzzleHttpClient' not found" in /vendor/Maidmaid/Zoho/Client.php on line 24

I found a password with hashcat, but it doesn't work

What is the "ls" directory in my home directory?

Why is "Congress shall have power to enforce this article by appropriate legislation" necessary?

Did the CIA blow up a Siberian pipeline in 1982?

How to work with PETG? Settings, caveats, etc

Should I include an appendix for inessential, yet related worldbuilding to my story?

Print one file per line using echo

When Bnei Yisroel travelled in the midbar, what happened on Shabbos?

What triggered jesuits' ban on infinitesimals in 1632?

Encounter design and XP thresholds

Explicit song lyrics checker

What is the most suitable position for a bishop here?

Helping ease my back pain by studying 13 hours everyday , even weekends

A word for delight at someone else's failure?

What are Elsa's reasons for selecting the Holy Grail on behalf of Donovan?

Can I enter the UK for 24 hours from a Schengen area, holding an Indian passport?

What are the current battlegrounds for people’s “rights” in the UK?

What was the first third-party commercial application for MS-DOS?

Where should a runway for a spaceplane be located?

What was the flower of Empress Taytu?

Is there any proof that high saturation and contrast makes a picture more appealing in social media?

What is the oldest commercial MS-DOS program that can run on modern versions of Windows without third-party software?

How does DC work with natural 20?

I just entered the USA without passport control at Atlanta airport



What to replace deprecated Class 'Zend_Rest_Client' with in Magento 2.3?


Magento2 - SOAP API not authorized issueClassnames 'Void' inside vendor/magento/Class Mage not found in Magento 2basic php test in magento using module class, driving me crazy!Magento 2 - Add additional constructor argument widget block classMagento 2: How to create API rest for users CRUDClass not found even exist on Magento 2How to see all the observers currently registered?Can't Access Checkout PageUncaught Error: Class 'GuzzleHttpClient' not found" in /vendor/Maidmaid/Zoho/Client.php on line 24






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















A module I'm maintaining is not working on Magento 2.3 since Magento apparently deprecated Class 'Zend_Rest_Client' . I don't see any replacement Client listed in their documentation, so I'm a bit confused on which class I should be extending now.



This is my class on line 5:



class Client extends Zend_Rest_Client


This is the error thrown in Magento 2.3:




( ! ) Fatal error: Class 'Zend_Rest_Client' not found in
/m23/app/code/Maurisource/Module/Model/Rest/Client.php on line 5











share|improve this question




























    0















    A module I'm maintaining is not working on Magento 2.3 since Magento apparently deprecated Class 'Zend_Rest_Client' . I don't see any replacement Client listed in their documentation, so I'm a bit confused on which class I should be extending now.



    This is my class on line 5:



    class Client extends Zend_Rest_Client


    This is the error thrown in Magento 2.3:




    ( ! ) Fatal error: Class 'Zend_Rest_Client' not found in
    /m23/app/code/Maurisource/Module/Model/Rest/Client.php on line 5











    share|improve this question
























      0












      0








      0








      A module I'm maintaining is not working on Magento 2.3 since Magento apparently deprecated Class 'Zend_Rest_Client' . I don't see any replacement Client listed in their documentation, so I'm a bit confused on which class I should be extending now.



      This is my class on line 5:



      class Client extends Zend_Rest_Client


      This is the error thrown in Magento 2.3:




      ( ! ) Fatal error: Class 'Zend_Rest_Client' not found in
      /m23/app/code/Maurisource/Module/Model/Rest/Client.php on line 5











      share|improve this question














      A module I'm maintaining is not working on Magento 2.3 since Magento apparently deprecated Class 'Zend_Rest_Client' . I don't see any replacement Client listed in their documentation, so I'm a bit confused on which class I should be extending now.



      This is my class on line 5:



      class Client extends Zend_Rest_Client


      This is the error thrown in Magento 2.3:




      ( ! ) Fatal error: Class 'Zend_Rest_Client' not found in
      /m23/app/code/Maurisource/Module/Model/Rest/Client.php on line 5








      magento2 model rest-api zend-framework http-request






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 11 at 18:26









      maurisource webmaurisource web

      998




      998




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You are correct in that Magento deprecated the Zend_Rest module and a bunch of others. You can find a full list here https://devdocs.magento.com/guides/v2.3/release-notes/backward-incompatible-changes/



          With replacements, as far as I am aware there is no direct replacement for it.



          Instead, if we are trying to modify/extend the client, then we case use the MagentoFrameworkHTTPClient class as the base.



          Or if we are trying to use the client to make requests with we can inject one of the following blocks, examples of usage here: https://mage2.pro/t/topic/485



          • MagentoFrameworkHTTPZendClient

          • MagentoFrameworkHTTPAdapterCurl

          • Zend_Http_Client





          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f278000%2fwhat-to-replace-deprecated-class-zend-rest-client-with-in-magento-2-3%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You are correct in that Magento deprecated the Zend_Rest module and a bunch of others. You can find a full list here https://devdocs.magento.com/guides/v2.3/release-notes/backward-incompatible-changes/



            With replacements, as far as I am aware there is no direct replacement for it.



            Instead, if we are trying to modify/extend the client, then we case use the MagentoFrameworkHTTPClient class as the base.



            Or if we are trying to use the client to make requests with we can inject one of the following blocks, examples of usage here: https://mage2.pro/t/topic/485



            • MagentoFrameworkHTTPZendClient

            • MagentoFrameworkHTTPAdapterCurl

            • Zend_Http_Client





            share|improve this answer



























              0














              You are correct in that Magento deprecated the Zend_Rest module and a bunch of others. You can find a full list here https://devdocs.magento.com/guides/v2.3/release-notes/backward-incompatible-changes/



              With replacements, as far as I am aware there is no direct replacement for it.



              Instead, if we are trying to modify/extend the client, then we case use the MagentoFrameworkHTTPClient class as the base.



              Or if we are trying to use the client to make requests with we can inject one of the following blocks, examples of usage here: https://mage2.pro/t/topic/485



              • MagentoFrameworkHTTPZendClient

              • MagentoFrameworkHTTPAdapterCurl

              • Zend_Http_Client





              share|improve this answer

























                0












                0








                0







                You are correct in that Magento deprecated the Zend_Rest module and a bunch of others. You can find a full list here https://devdocs.magento.com/guides/v2.3/release-notes/backward-incompatible-changes/



                With replacements, as far as I am aware there is no direct replacement for it.



                Instead, if we are trying to modify/extend the client, then we case use the MagentoFrameworkHTTPClient class as the base.



                Or if we are trying to use the client to make requests with we can inject one of the following blocks, examples of usage here: https://mage2.pro/t/topic/485



                • MagentoFrameworkHTTPZendClient

                • MagentoFrameworkHTTPAdapterCurl

                • Zend_Http_Client





                share|improve this answer













                You are correct in that Magento deprecated the Zend_Rest module and a bunch of others. You can find a full list here https://devdocs.magento.com/guides/v2.3/release-notes/backward-incompatible-changes/



                With replacements, as far as I am aware there is no direct replacement for it.



                Instead, if we are trying to modify/extend the client, then we case use the MagentoFrameworkHTTPClient class as the base.



                Or if we are trying to use the client to make requests with we can inject one of the following blocks, examples of usage here: https://mage2.pro/t/topic/485



                • MagentoFrameworkHTTPZendClient

                • MagentoFrameworkHTTPAdapterCurl

                • Zend_Http_Client






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 11 at 22:51









                SamSam

                71212




                71212



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f278000%2fwhat-to-replace-deprecated-class-zend-rest-client-with-in-magento-2-3%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form