{"id":84907,"date":"2017-05-27T16:31:57","date_gmt":"2017-05-27T16:31:57","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=84907"},"modified":"2024-09-27T06:14:56","modified_gmt":"2024-09-27T06:14:56","slug":"dependency-injection","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/dependency-injection\/","title":{"rendered":"Dependency Injection In Adobe Commerce (Magento 2)"},"content":{"rendered":"\n<p>Magento 2 Dependency Injection (DI) is a cornerstone of its architecture, ensuring flexibility and modularity in the development process.<\/p>\n\n\n\n<p>Developers love Adobe Commerce (Magento 2) for its rich technology stack. Dependency Injection is a key design pattern powering this framework.<\/p>\n\n\n\n<p>However, many still find it challenging to grasp the concept of DI fully. So we&#8217;ll try to understand DI as simply as possible.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>As its name is self-explanatory, lets understand each of them separately:<\/p>\n\n\n\n<p><strong>Dependency<\/strong> simply means that something relies on something else. Just like you&#8217;re dependent on your parents, a class in programming can depend on the objects created within it.<\/p>\n\n\n\n<p>for example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php \n\nclass Product {\n\n  public function getTax($id) {\n     $tax = new Taxation();\n     return $tax-&gt;getCalculateTax($id);\n  }   \n\n}<\/pre>\n\n\n\n<p>In the example above, you can see a class <code>Product<\/code> with a method <code>getTax($id)<\/code>, where an object of the <code>Taxation<\/code> class is instantiated using the <code>new<\/code> keyword.<\/p>\n\n\n\n<p><strong>Injection<\/strong> simply means to provide something or to inject something by a third person.<\/p>\n\n\n\n<p>In the scenario above, <code>new Taxation()<\/code> represents the object that should be injected into the class by a third party to decouple the dependency between <code>Product<\/code> and <code>Taxation<\/code>.<\/p>\n\n\n\n<p>So Dependency Injection means to remove the direct dependency of the objects with class and use a third class to create objects for that class which is ObjectManager in Adobe commerce (Magento 2).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Problem<\/h2>\n\n\n\n<p>You must be thinking what is the issue with that, why we should remove this direct dependency, things are very easy without it.<\/p>\n\n\n\n<p>Now, imagine you&#8217;re using a third-party library to calculate tax, and after an update, a new version is released with the <code>Taxation<\/code> class now parameterized.<\/p>\n\n\n\n<p>Suppose you instantiate this class 100 times across hundreds of other classes\u2014how would you efficiently update your code in such a scenario?&#8221;.<\/p>\n\n\n\n<p>It is a very simple situation there can be much more complex situations like this.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n\n<p>Now let&#8217;s see how DI solves this situation in Adobe commerce (Magento 2):<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nclass Product {\n\n    protected $_taxation;\n\n    public function __construct(\n        \\Taxation $taxation\n    ) {\n        $this-&gt;_taxation = $taxation;\n    }\n\n    public function getTax($id) {\n        return $this-&gt;_taxation-&gt;getCalculateTax($id);\n    }\n}<\/pre>\n\n\n\n<p>In the above code, there is no use of the <code>new<\/code> keyword to create an object of the <code>Taxation<\/code> class. You might be wondering about the case of a non-parameterized <code>Taxation<\/code> class.<\/p>\n\n\n\n<p>Understanding how to manage parameterized classes is crucial. This is where the beauty of the Dependency Injection pattern, along with OOP concepts like reflection, comes into play.<\/p>\n\n\n\n<p>To handle the above situation you need to first create di.xml file in you Adobe commerce (Magento 2) module, and make this entry:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;type name=&quot;\/Taxation&quot;&gt;\n        &lt;arguments&gt;\n            &lt;argument name=&quot;%newParam%&quot; xsi:type=&quot;%anyType%&quot;&gt;%Argument%&lt;\/argument&gt;\n        &lt;\/arguments&gt;\n&lt;\/type&gt;<\/pre>\n\n\n\n<p>When the ObjectManager creates the object of the Taxation class, it first checks the type declaration. It then adds the <code>%newParam%<\/code> value to the object&#8217;s constructor. <\/p>\n\n\n\n<p>You can define any type of argument here using <code>xsi:type<\/code>, such as object, string, int, etc.<\/p>\n\n\n\n<p>you must be thinking how ObjectManager will check the class constructor before creating its object, here comes the use of Reflection.<\/p>\n\n\n\n<p><strong>Reflection<\/strong> means to introspect and examine about self. In programming, Reflection is a PHP library to check class members, functions, and constructor parameters.<\/p>\n\n\n\n<p>By using Reflection, Magento identifies the class it is going to instantiate.<\/p>\n\n\n\n<p>And by doing the above steps you actually solved the problem without having to update the object initialization everywhere.<\/p>\n\n\n\n<p>I hope that the above explanation could have made you understand some basics of DI, I will try to post more on DI as it is huge topic to explain.<\/p>\n\n\n\n<p>For any technical assistance, please reach out to us at <a href=\"mailto:support@webkul.com\">support@webkul.com<\/a>. Additionally, explore a variety of solutions to enhance your Magento 2 store by visiting the <a href=\"https:\/\/store.webkul.com\/Magento-2.html\">Magento 2 extensions<\/a> store.<\/p>\n\n\n\n<p>If you need expert guidance or want to develop custom features, consider <a href=\"https:\/\/webkul.com\/hire-magento-developers\/\">hiring Magento 2 Developers<\/a> for your project.<\/p>\n\n\n\n<p>Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento 2 Dependency Injection (DI) is a cornerstone of its architecture, ensuring flexibility and modularity in the development process. Developers love Adobe Commerce (Magento 2) for its rich technology stack. Dependency Injection is a key design pattern powering this framework. However, many still find it challenging to grasp the concept of DI fully. So we&#8217;ll <a href=\"https:\/\/webkul.com\/blog\/dependency-injection\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":4,"featured_media":80140,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302,13],"tags":[],"class_list":["post-84907","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento2","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Dependency Injection In Adobe Commerce<\/title>\n<meta name=\"description\" content=\"Dependency Injection(DI) is one of the design pattern that Adobe commerce (Magento 2) usese, but still some people do not understand exactly what DI is?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/dependency-injection\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dependency Injection In Adobe Commerce\" \/>\n<meta property=\"og:description\" content=\"Dependency Injection(DI) is one of the design pattern that Adobe commerce (Magento 2) usese, but still some people do not understand exactly what DI is?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/dependency-injection\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-27T16:31:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-27T06:14:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/04\/Magneto-Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Abhishek Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhishek Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/dependency-injection\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/dependency-injection\/\"},\"author\":{\"name\":\"Abhishek Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0\"},\"headline\":\"Dependency Injection In Adobe Commerce (Magento 2)\",\"datePublished\":\"2017-05-27T16:31:57+00:00\",\"dateModified\":\"2024-09-27T06:14:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/dependency-injection\/\"},\"wordCount\":573,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/dependency-injection\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/04\/Magneto-Code-Snippet.png\",\"articleSection\":[\"Magento2\",\"php\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/dependency-injection\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/dependency-injection\/\",\"url\":\"https:\/\/webkul.com\/blog\/dependency-injection\/\",\"name\":\"Dependency Injection In Adobe Commerce\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/dependency-injection\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/dependency-injection\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/04\/Magneto-Code-Snippet.png\",\"datePublished\":\"2017-05-27T16:31:57+00:00\",\"dateModified\":\"2024-09-27T06:14:56+00:00\",\"description\":\"Dependency Injection(DI) is one of the design pattern that Adobe commerce (Magento 2) usese, but still some people do not understand exactly what DI is?\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/dependency-injection\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/dependency-injection\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/dependency-injection\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/04\/Magneto-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/04\/Magneto-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/dependency-injection\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dependency Injection In Adobe Commerce (Magento 2)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0\",\"name\":\"Abhishek Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Abhishek Singh\"},\"description\":\"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.\",\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/abhishek\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dependency Injection In Adobe Commerce","description":"Dependency Injection(DI) is one of the design pattern that Adobe commerce (Magento 2) usese, but still some people do not understand exactly what DI is?","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/dependency-injection\/","og_locale":"en_US","og_type":"article","og_title":"Dependency Injection In Adobe Commerce","og_description":"Dependency Injection(DI) is one of the design pattern that Adobe commerce (Magento 2) usese, but still some people do not understand exactly what DI is?","og_url":"https:\/\/webkul.com\/blog\/dependency-injection\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-05-27T16:31:57+00:00","article_modified_time":"2024-09-27T06:14:56+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/04\/Magneto-Code-Snippet.png","type":"image\/png"}],"author":"Abhishek Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Abhishek Singh","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/dependency-injection\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/dependency-injection\/"},"author":{"name":"Abhishek Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0"},"headline":"Dependency Injection In Adobe Commerce (Magento 2)","datePublished":"2017-05-27T16:31:57+00:00","dateModified":"2024-09-27T06:14:56+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/dependency-injection\/"},"wordCount":573,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/dependency-injection\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/04\/Magneto-Code-Snippet.png","articleSection":["Magento2","php"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/dependency-injection\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/dependency-injection\/","url":"https:\/\/webkul.com\/blog\/dependency-injection\/","name":"Dependency Injection In Adobe Commerce","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/dependency-injection\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/dependency-injection\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/04\/Magneto-Code-Snippet.png","datePublished":"2017-05-27T16:31:57+00:00","dateModified":"2024-09-27T06:14:56+00:00","description":"Dependency Injection(DI) is one of the design pattern that Adobe commerce (Magento 2) usese, but still some people do not understand exactly what DI is?","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/dependency-injection\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/dependency-injection\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/dependency-injection\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/04\/Magneto-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/04\/Magneto-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/dependency-injection\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Dependency Injection In Adobe Commerce (Magento 2)"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0","name":"Abhishek Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Abhishek Singh"},"description":"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.","sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/abhishek\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/84907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=84907"}],"version-history":[{"count":13,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/84907\/revisions"}],"predecessor-version":[{"id":465705,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/84907\/revisions\/465705"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/80140"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=84907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=84907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=84907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}