{"id":8378,"date":"2023-05-12T03:52:52","date_gmt":"2023-05-12T03:52:52","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=8378"},"modified":"2023-05-13T06:40:11","modified_gmt":"2023-05-13T06:40:11","slug":"tong-quan-ve-objectmanager-va-di-trong-magento-2","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/","title":{"rendered":"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2"},"content":{"rendered":"\n<p>Magento 2 l\u00e0 m\u1ed9t n\u1ec1n t\u1ea3ng th\u01b0\u01a1ng m\u1ea1i \u0111i\u1ec7n t\u1eed m\u1ea1nh m\u1ebd, \u0111\u01b0\u1ee3c vi\u1ebft b\u1eb1ng PHP v\u00e0 s\u1eed d\u1ee5ng ki\u1ebfn tr\u00fac h\u01b0\u1edbng \u0111\u1ed1i t\u01b0\u1ee3ng (OOP) \u0111\u1ec3 ph\u00e1t tri\u1ec3n c\u00e1c ch\u1ee9c n\u0103ng. Trong Magento 2,&nbsp;ObjectManager&nbsp;v\u00e0 Dependency Injection (DI) l\u00e0 nh\u1eefng kh\u00e1i ni\u1ec7m r\u1ea5t quan tr\u1ecdng v\u00e0 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i trong vi\u1ec7c ph\u00e1t tri\u1ec3n c\u00e1c module v\u00e0 extension. \u1ede b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u t\u1ed5ng quan v\u00e0 c\u00e1ch s\u1eed d\u1ee5ng&nbsp;ObjectManager&nbsp;v\u00e0 DI trong Magento 2.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"objectmanager\"><a href=\"https:\/\/voicegpt.us\/chatgpt\/645dae2a2396b1ec4d279fe4#objectmanager\"><\/a>ObjectManager Magento 2<\/h2>\n\n\n\n<p>ObjectManager&nbsp;l\u00e0 m\u1ed9t th\u00e0nh ph\u1ea7n quan tr\u1ecdng v\u00e0 c\u01a1 b\u1ea3n trong ki\u1ebfn tr\u00fac c\u1ee7a Magento 2. N\u00f3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 t\u1ea1o ra c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng (object) m\u1edbi v\u00e0 qu\u1ea3n l\u00fd c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng \u0111\u00f3.<\/p>\n\n\n\n<p>ObjectManager&nbsp;c\u00f3 th\u1ec3 g\u1ecdi cho m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng b\u1ea5t k\u1ef3 n\u1ebfu n\u00f3 \u0111\u01b0\u1ee3c khai b\u00e1o tr\u01b0\u1edbc \u0111\u00f3. N\u00f3 c\u00f3 th\u1ec3 t\u1ea1o ra m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng m\u1edbi cho m\u1ed9t l\u1edbp, l\u1ea5y th\u00f4ng tin v\u00e0 t\u01b0\u01a1ng t\u00e1c th\u00f4ng qua c\u00e1c ph\u01b0\u01a1ng th\u1ee9c truy c\u1eadp.<\/p>\n\n\n\n<p>ObjectManager&nbsp;\u0111\u01b0\u1ee3c kh\u1edfi t\u1ea1o trong Magento 2 th\u00f4ng qua file&nbsp;<code>`app\/bootstrap.php`<\/code>. V\u00e0 trong h\u1ea7u h\u1ebft c\u00e1c tr\u01b0\u1eddng h\u1ee3p, b\u1ea1n kh\u00f4ng c\u1ea7n ph\u1ea3i kh\u1edfi t\u1ea1o&nbsp;ObjectManager&nbsp;b\u1eb1ng tay m\u00e0 Magento 2 s\u1ebd t\u1ef1 \u0111\u1ed9ng th\u1ef1c hi\u1ec7n \u0111i\u1ec1u n\u00e0y.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">M\u1ed9t s\u1ed1 ph\u01b0\u01a1ng th\u1ee9c th\u01b0\u1eddng \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng trong ObjectManager Magento 2<\/h3>\n\n\n\n<p><strong>1. create()<\/strong><\/p>\n\n\n\n<p>Ph\u01b0\u01a1ng th\u1ee9c&nbsp;<code>`create()`<\/code>&nbsp;\u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 kh\u1edfi t\u1ea1o m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng m\u1edbi t\u1eeb m\u1ed9t l\u1edbp nh\u1ea5t \u0111\u1ecbnh. N\u00f3 gi\u1ed1ng nh\u01b0&nbsp;<code>`new`<\/code>&nbsp;trong PHP, tuy nhi\u00ean n\u00f3 c\u00f3 nhi\u1ec1u \u01b0u \u0111i\u1ec3m h\u01a1n, b\u1edfi v\u00ec n\u00f3 h\u1ed7 tr\u1ee3 vi\u1ec7c t\u1ea1o ra \u0111\u1ed1i t\u01b0\u1ee3ng v\u1edbi c\u00e1c tham s\u1ed1.<\/p>\n\n\n\n<p>V\u00ed d\u1ee5:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\n$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n$myObject = $objectManager-&gt;create('Namespace\\Module\\Model\\MyObject');\n<\/pre><\/div>\n\n\n<p><strong>2. get()<\/strong><\/p>\n\n\n\n<p>Ph\u01b0\u01a1ng th\u1ee9c&nbsp;<code>`get()`<\/code>&nbsp;\u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 l\u1ea5y m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng \u0111\u00e3 \u0111\u01b0\u1ee3c t\u1ea1o tr\u01b0\u1edbc \u0111\u00f3 t\u1eeb&nbsp;ObjectManager. Th\u01b0\u1eddng \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 l\u1ea5y c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng \u0111\u01b0\u1ee3c \u0111\u0103ng k\u00fd trong h\u1ec7 th\u1ed1ng.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\n$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n$myObject = $objectManager-&gt;get('Namespace\\Module\\Model\\MyObject');\n<\/pre><\/div>\n\n\n<p><strong>3. configure()<\/strong><\/p>\n\n\n\n<p>Ph\u01b0\u01a1ng th\u1ee9c&nbsp;<code>`configure()`<\/code>&nbsp;\u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 c\u1ea5u h\u00ecnh m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng sau khi n\u00f3 \u0111\u00e3 \u0111\u01b0\u1ee3c t\u1ea1o ra. \u0110i\u1ec1u n\u00e0y r\u1ea5t h\u1eefu \u00edch n\u1ebfu b\u1ea1n mu\u1ed1n \u0111\u1ecbnh c\u1ea5u h\u00ecnh cho m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng m\u00e0 kh\u00f4ng mu\u1ed1n t\u1ea1o ra m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng m\u1edbi.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\n$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n$myObject = $objectManager-&gt;create('Namespace\\Module\\Model\\MyObject');\n$objectManager-&gt;configure($myObject)-&gt;setData('key', 'value');\n<\/pre><\/div>\n\n\n<p>Ngo\u00e0i ra c\u00f2n c\u00f3 c\u00e1c ph\u01b0\u01a1ng th\u1ee9c kh\u00e1c:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>`has($type)`<\/code>: Ki\u1ec3m tra xem ObjectManager \u0111\u00e3 t\u1ea1o \u0111\u01b0\u1ee3c \u0111\u1ed1i t\u01b0\u1ee3ng c\u1ee7a lo\u1ea1i&nbsp;<code>`$type`<\/code>&nbsp;ch\u01b0a.<\/li>\n\n\n\n<li><code>`createBatchProxy($types, $callback)`<\/code>: T\u1ea1o m\u1ed9t proxy \u0111\u1ec3 t\u1ea1o v\u00e0 l\u1ea5y c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng c\u1ee7a c\u00e1c lo\u1ea1i trong&nbsp;<code>`$types`<\/code>. H\u00e0m&nbsp;<code>`$callback`<\/code>&nbsp;s\u1ebd \u0111\u01b0\u1ee3c g\u1ecdi m\u1ed7i khi proxy mu\u1ed1n truy c\u1eadp \u0111\u1ebfn m\u1ed9t lo\u1ea1i \u0111\u1ed1i t\u01b0\u1ee3ng n\u00e0o \u0111\u00f3.<\/li>\n\n\n\n<li><code>`configureSharedInstance($instance, $type)`<\/code>: C\u1ea5u h\u00ecnh m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng&nbsp;<code>`$instance`<\/code>&nbsp;\u0111\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng nh\u01b0 m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng chia s\u1ebb c\u1ee7a lo\u1ea1i&nbsp;<code>`$type`<\/code>.<\/li>\n\n\n\n<li><code>`share($type)`<\/code>: Chia s\u1ebb m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng v\u1edbi ObjectManager, \u0111\u1ec3 \u0111\u1ed1i t\u01b0\u1ee3ng \u0111\u00f3 c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng trong nhi\u1ec1u kh\u1ed1i m\u00e3 kh\u00e1c nhau.<\/li>\n<\/ul>\n\n\n\n<p>Tuy nhi\u00ean, c\u00e1ch s\u1eed d\u1ee5ng&nbsp;ObjectManager&nbsp;tr\u1ef1c ti\u1ebfp nh\u01b0 tr\u00ean kh\u00f4ng \u0111\u01b0\u1ee3c khuy\u1ebfn kh\u00edch v\u00ec n\u00f3 c\u00f3 th\u1ec3 g\u00e2y ra m\u1ed9t s\u1ed1 v\u1ea5n \u0111\u1ec1 trong qu\u00e1 tr\u00ecnh ph\u00e1t tri\u1ec3n v\u00e0 b\u1ea3o tr\u00ec. V\u00ec v\u1eady, Magento 2 cung c\u1ea5p cho ch\u00fang ta m\u1ed9t gi\u1ea3i ph\u00e1p t\u1ed1t h\u01a1n, \u0111\u00f3 l\u00e0 s\u1eed d\u1ee5ng Dependency Injection (DI).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"dependency-injection-di\">Dependency Injection (DI) trong Magento 2<\/h2>\n\n\n\n<p>Dependency Injection (DI) l\u00e0 m\u1ed9t m\u1eabu thi\u1ebft k\u1ebf ph\u1ed5 bi\u1ebfn trong l\u1eadp tr\u00ecnh ph\u1ea7n m\u1ec1m, n\u00f3 gi\u00fap cho vi\u1ec7c ph\u00e1t tri\u1ec3n v\u00e0 b\u1ea3o tr\u00ec c\u00e1c \u1ee9ng d\u1ee5ng d\u1ec5 d\u00e0ng h\u01a1n. V\u1edbi DI, ch\u00fang ta kh\u00f4ng c\u1ea7n ph\u1ea3i s\u1eed d\u1ee5ng tr\u1ef1c ti\u1ebfp&nbsp;ObjectManager&nbsp;\u0111\u1ec3 t\u1ea1o ra c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng m\u00e0 h\u1ec7 th\u1ed1ng s\u1ebd t\u1ef1 \u0111\u1ed9ng cung c\u1ea5p ch\u00fang cho ch\u00fang ta th\u00f4ng qua h\u1ec7 th\u1ed1ng DI c\u1ee7a Magento 2.<\/p>\n\n\n\n<p>\u0110\u00e2y l\u00e0 m\u1ed9t c\u00e1ch ti\u1ebfp c\u1eadn \u0111\u1ec3 gi\u1ea3m s\u1ef1 ph\u1ee5 thu\u1ed9c gi\u1eefa c\u00e1c l\u1edbp v\u00e0 qu\u1ea3n l\u00fd c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng. Trong Magento 2, DI gi\u00fap qu\u1ea3n l\u00fd c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng v\u00e0 n\u00f3 l\u00e0 ph\u1ea7n c\u1ed1t l\u00f5i c\u1ee7a ki\u1ebfn tr\u00fac c\u1ee7a Magento.<\/p>\n\n\n\n<p>Khi s\u1eed d\u1ee5ng DI, c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng \u0111\u01b0\u1ee3c chuy\u1ec3n \u0111\u1ebfn constructor c\u1ee7a m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng nh\u01b0 l\u00e0 c\u00e1c tham s\u1ed1. \u0110i\u1ec1u n\u00e0y \u0111\u1ea3m b\u1ea3o r\u1eb1ng c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng \u0111\u00f3 \u0111\u01b0\u1ee3c t\u1ea1o ra tr\u01b0\u1edbc khi \u0111\u1ed1i t\u01b0\u1ee3ng m\u1edbi \u0111\u01b0\u1ee3c t\u1ea1o ra v\u00e0 th\u00f4ng qua constructor \u0111\u1ec3 gi\u1ea3m s\u1ef1 ph\u1ee5 thu\u1ed9c. V\u00ed d\u1ee5:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\nclass MyObject\n{\n    protected $helper;\n    \n    public function __construct(\n        \\Namespace\\Module\\Helper\\Data $helper\n    ) {\n        $this-&gt;helper = $helper;\n    }\n}\n<\/pre><\/div>\n\n\n<p>Trong v\u00ed d\u1ee5 tr\u00ean,&nbsp;<code>`Namespace\\Module\\Helper\\Data`<\/code>&nbsp;\u0111\u01b0\u1ee3c chuy\u1ec3n v\u00e0o qua constructor c\u1ee7a&nbsp;<code>`MyObject`<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"k\u1ebft-lu\u1eadn\">K\u1ebft lu\u1eadn<\/h2>\n\n\n\n<p>T\u00f3m l\u1ea1i, trong Magento 2,&nbsp;ObjectManager&nbsp;v\u00e0 DI l\u00e0 hai kh\u00e1i ni\u1ec7m quan tr\u1ecdng v\u00e0 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i trong vi\u1ec7c ph\u00e1t tri\u1ec3n c\u00e1c module v\u00e0 extension. M\u1eb7c d\u00f9&nbsp;ObjectManager&nbsp;l\u00e0 m\u1ed9t th\u00e0nh ph\u1ea7n quan tr\u1ecdng trong ki\u1ebfn tr\u00fac c\u1ee7a Magento 2, \u0111\u00e3 \u0111\u01b0\u1ee3c t\u1ef1 \u0111\u1ed9ng kh\u1edfi t\u1ea1o v\u00e0 s\u1eed d\u1ee5ng trong h\u1ea7u h\u1ebft c\u00e1c tr\u01b0\u1eddng h\u1ee3p, nh\u01b0ng s\u1eed d\u1ee5ng DI l\u00e0 m\u1ed9t gi\u1ea3i ph\u00e1p t\u1ed1t h\u01a1n v\u00e0 \u0111\u01b0\u1ee3c khuy\u1ebfn kh\u00edch. V\u1edbi DI, ch\u00fang ta kh\u00f4ng c\u1ea7n ph\u1ea3i s\u1eed d\u1ee5ng tr\u1ef1c ti\u1ebfp&nbsp;ObjectManager&nbsp;\u0111\u1ec3 t\u1ea1o ra c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng m\u00e0 h\u1ec7 th\u1ed1ng s\u1ebd t\u1ef1 \u0111\u1ed9ng cung c\u1ea5p ch\u00fang cho ch\u00fang ta. Mong r\u1eb1ng b\u00e0i vi\u1ebft n\u00e0y s\u1ebd gi\u00fap \u00edch cho b\u1ea1n trong qu\u00e1 tr\u00ecnh ph\u00e1t tri\u1ec3n c\u00e1c module v\u00e0 extension tr\u00ean Magento 2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trong b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u t\u1ed5ng quan v\u00e0 c\u00e1ch s\u1eed d\u1ee5ng\u00a0ObjectManager\u00a0v\u00e0 DI trong Magento 2.<\/p>\n","protected":false},"author":108,"featured_media":8387,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":true,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[226],"tags":[332,2045],"class_list":["post-8378","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vn","tag-huong-dan-magento-2","tag-tong-quan-ve-objectmanager-va-di-trong-magento-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2<\/title>\n<meta name=\"description\" content=\"Trong b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u t\u1ed5ng quan v\u00e0 c\u00e1ch s\u1eed d\u1ee5ng\u00a0ObjectManager\u00a0v\u00e0 Dependency Injection (DI) trong Magento 2.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2\" \/>\n<meta property=\"og:description\" content=\"Trong b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u t\u1ed5ng quan v\u00e0 c\u00e1ch s\u1eed d\u1ee5ng\u00a0ObjectManager\u00a0v\u00e0 Dependency Injection (DI) trong Magento 2.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-12T03:52:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-13T06:40:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Tong-quan-ve-ObjectManager-va-DI-trong-Magento-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"611\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Callula Huy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Callula Huy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/\"},\"author\":{\"name\":\"Callula Huy\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9\"},\"headline\":\"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2\",\"datePublished\":\"2023-05-12T03:52:52+00:00\",\"dateModified\":\"2023-05-13T06:40:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/\"},\"wordCount\":1169,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Tong-quan-ve-ObjectManager-va-DI-trong-Magento-2.png?fit=1200%2C611&ssl=1\",\"keywords\":[\"h\u01b0\u1edbng d\u1eabn magento 2\",\"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2\"],\"articleSection\":[\"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/\",\"name\":\"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Tong-quan-ve-ObjectManager-va-DI-trong-Magento-2.png?fit=1200%2C611&ssl=1\",\"datePublished\":\"2023-05-12T03:52:52+00:00\",\"dateModified\":\"2023-05-13T06:40:11+00:00\",\"description\":\"Trong b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u t\u1ed5ng quan v\u00e0 c\u00e1ch s\u1eed d\u1ee5ng\u00a0ObjectManager\u00a0v\u00e0 Dependency Injection (DI) trong Magento 2.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Tong-quan-ve-ObjectManager-va-DI-trong-Magento-2.png?fit=1200%2C611&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Tong-quan-ve-ObjectManager-va-DI-trong-Magento-2.png?fit=1200%2C611&ssl=1\",\"width\":1200,\"height\":611,\"caption\":\"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9\",\"name\":\"Callula Huy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g\",\"caption\":\"Callula Huy\"},\"description\":\"Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under his belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.\",\"sameAs\":[\"http:\/\/magetop.com\"],\"url\":\"https:\/\/www.magetop.com\/blog\/author\/callula-huy\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2","description":"Trong b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u t\u1ed5ng quan v\u00e0 c\u00e1ch s\u1eed d\u1ee5ng\u00a0ObjectManager\u00a0v\u00e0 Dependency Injection (DI) trong Magento 2.","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:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2","og_description":"Trong b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u t\u1ed5ng quan v\u00e0 c\u00e1ch s\u1eed d\u1ee5ng\u00a0ObjectManager\u00a0v\u00e0 Dependency Injection (DI) trong Magento 2.","og_url":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2023-05-12T03:52:52+00:00","article_modified_time":"2023-05-13T06:40:11+00:00","og_image":[{"width":1200,"height":611,"url":"https:\/\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Tong-quan-ve-ObjectManager-va-DI-trong-Magento-2.png","type":"image\/png"}],"author":"Callula Huy","twitter_card":"summary_large_image","twitter_creator":"@MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Callula Huy","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/"},"author":{"name":"Callula Huy","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9"},"headline":"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2","datePublished":"2023-05-12T03:52:52+00:00","dateModified":"2023-05-13T06:40:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/"},"wordCount":1169,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Tong-quan-ve-ObjectManager-va-DI-trong-Magento-2.png?fit=1200%2C611&ssl=1","keywords":["h\u01b0\u1edbng d\u1eabn magento 2","T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2"],"articleSection":["Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/","url":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/","name":"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Tong-quan-ve-ObjectManager-va-DI-trong-Magento-2.png?fit=1200%2C611&ssl=1","datePublished":"2023-05-12T03:52:52+00:00","dateModified":"2023-05-13T06:40:11+00:00","description":"Trong b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u t\u1ed5ng quan v\u00e0 c\u00e1ch s\u1eed d\u1ee5ng\u00a0ObjectManager\u00a0v\u00e0 Dependency Injection (DI) trong Magento 2.","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Tong-quan-ve-ObjectManager-va-DI-trong-Magento-2.png?fit=1200%2C611&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Tong-quan-ve-ObjectManager-va-DI-trong-Magento-2.png?fit=1200%2C611&ssl=1","width":1200,"height":611,"caption":"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/tong-quan-ve-objectmanager-va-di-trong-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"T\u1ed5ng quan v\u1ec1 ObjectManager v\u00e0 DI trong Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9","name":"Callula Huy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g","caption":"Callula Huy"},"description":"Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under his belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.","sameAs":["http:\/\/magetop.com"],"url":"https:\/\/www.magetop.com\/blog\/author\/callula-huy\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Tong-quan-ve-ObjectManager-va-DI-trong-Magento-2.png?fit=1200%2C611&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-2b8","jetpack-related-posts":[{"id":8476,"url":"https:\/\/www.magetop.com\/blog\/ui-component-la-gi-tong-quan-ui-component-magento-2\/","url_meta":{"origin":8378,"position":0},"title":"UI Component l\u00e0 g\u00ec? T\u1ed5ng quan v\u1ec1 UI Component trong Magento 2","author":"Callula Huy","date":"May 31, 2023","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang ta s\u1ebd c\u00f9ng t\u00ecm hi\u1ec3u kh\u00e1i ni\u1ec7m UI component l\u00e0 g\u00ec? v\u00e0 t\u1ed5ng quan v\u1ec1 UI component trong Magento 2.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"UI Component l\u00e0 g\u00ec? T\u1ed5ng quan v\u1ec1 UI Component trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/UI-Component-la-gi-Tong-quan-ve-UI-Component-trong-Magento-2.png?fit=848%2C448&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/UI-Component-la-gi-Tong-quan-ve-UI-Component-trong-Magento-2.png?fit=848%2C448&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/UI-Component-la-gi-Tong-quan-ve-UI-Component-trong-Magento-2.png?fit=848%2C448&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/UI-Component-la-gi-Tong-quan-ve-UI-Component-trong-Magento-2.png?fit=848%2C448&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":4022,"url":"https:\/\/www.magetop.com\/blog\/cach-thay-doi-che-do-magento-2\/","url_meta":{"origin":8378,"position":1},"title":"H\u01b0\u1edbng d\u1eabn thay \u0111\u1ed5i ch\u1ebf \u0111\u1ed9 Magento 2 mod: Developer, Production","author":"Callula Huy","date":"January 5, 2021","format":false,"excerpt":"Magento 2 \u0111\u01b0\u1ee3c ph\u00e2n t\u00e1ch ra th\u00e0nh 3 ch\u1ebf \u0111\u1ed9. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch thay \u0111\u1ed5i c\u00e1c ch\u1ebf \u0111\u1ed9 trong Magento 2.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn thay \u0111\u1ed5i ch\u1ebf \u0111\u1ed9 Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/01\/Huong-dan-thay-doi-che-do-Magento-2.jpg?fit=649%2C430&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/01\/Huong-dan-thay-doi-che-do-Magento-2.jpg?fit=649%2C430&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/01\/Huong-dan-thay-doi-che-do-Magento-2.jpg?fit=649%2C430&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3302,"url":"https:\/\/www.magetop.com\/blog\/so-sanh-magento-va-wordpress\/","url_meta":{"origin":8378,"position":2},"title":"So s\u00e1nh gi\u1eefa Magento v\u00e0 WordPress","author":"Callula Huy","date":"November 20, 2020","format":false,"excerpt":"Gi\u1eefa n\u1ec1n t\u1ea3ng Magento v\u00e0 Wordpress c\u00e1i n\u00e0o l\u00e0 t\u1ed1t h\u01a1n?. Trong b\u00e0i vi\u1ebft so s\u00e1nh gi\u1eefa Magento v\u00e0 Wordpress ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u v\u1ea5n \u0111\u1ec1 n\u00e0y.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"so s\u00e1nh Magento v\u00e0 Wordpress","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/11\/so-sanh-Magento-va-Wordpress.png?fit=668%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/11\/so-sanh-Magento-va-Wordpress.png?fit=668%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/11\/so-sanh-Magento-va-Wordpress.png?fit=668%2C445&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":8402,"url":"https:\/\/www.magetop.com\/blog\/cac-core-class-quan-trong-trong-magento-2\/","url_meta":{"origin":8378,"position":3},"title":"C\u00e1c core class quan tr\u1ecdng trong Magento 2","author":"Callula Huy","date":"April 5, 2023","format":false,"excerpt":"T\u1ed5ng h\u1ee3p m\u1ed9t s\u1ed1 core class trong framework Magento 2 m\u00e0 b\u1ea1n n\u00ean quan t\u00e2m v\u00e0 s\u1eed d\u1ee5ng. C\u00f9ng v\u1edbi \u0111\u00f3 l\u00e0 gi\u1edbi thi\u1ec7u v\u1ec1 c\u00f4ng d\u1ee5ng c\u1ee7a t\u1eebng class.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"C\u00e1c core class quan tr\u1ecdng trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Cac-core-class-quan-trong-trong-Magento-2.webp?fit=750%2C405&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Cac-core-class-quan-trong-trong-Magento-2.webp?fit=750%2C405&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Cac-core-class-quan-trong-trong-Magento-2.webp?fit=750%2C405&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/05\/Cac-core-class-quan-trong-trong-Magento-2.webp?fit=750%2C405&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":8302,"url":"https:\/\/www.magetop.com\/blog\/magento-la-gi\/","url_meta":{"origin":8378,"position":4},"title":"Magento l\u00e0 g\u00ec? L\u00fd do Magento \u0111\u01b0\u1ee3c c\u00e1c doanh nghi\u1ec7p l\u1edbn tin d\u00f9ng","author":"Callula Huy","date":"March 8, 2023","format":false,"excerpt":"Magento l\u00e0 g\u00ec? H\u00f4m nay, ch\u00fang t\u00f4i s\u1ebd gi\u1edbi thi\u1ec7u v\u1ec1 Magento v\u00e0 c\u00e1c t\u00ednh n\u0103ng h\u1ea5p d\u1eabn m\u00e0 n\u00f3 cung c\u1ea5p cho c\u1eeda h\u00e0ng tr\u1ef1c tuy\u1ebfn c\u1ee7a b\u1ea1n.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"Magento l\u00e0 g\u00ec? L\u00fd do Magento \u0111\u01b0\u1ee3c c\u00e1c doanh nghi\u1ec7p l\u1edbn tin d\u00f9ng","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/03\/Magento-la-gi.png?fit=1200%2C630&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/03\/Magento-la-gi.png?fit=1200%2C630&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/03\/Magento-la-gi.png?fit=1200%2C630&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/03\/Magento-la-gi.png?fit=1200%2C630&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/03\/Magento-la-gi.png?fit=1200%2C630&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2553,"url":"https:\/\/www.magetop.com\/blog\/cai-thien-bao-mat-magento-2\/","url_meta":{"origin":8378,"position":5},"title":"C\u00e1c c\u00e1ch \u0111\u1ec3 c\u1ea3i thi\u1ec7n b\u1ea3o m\u1eadt trong Magento 2","author":"Callula Huy","date":"July 15, 2020","format":false,"excerpt":"B\u1ea3o m\u1eadt lu\u00f4n l\u00e0 m\u1ed9t v\u1ea5n \u0111\u1ec1 \u0111\u01b0\u1ee3c quan t\u00e2m h\u00e0ng \u0111\u1ea7u khi ch\u00fang ta v\u1eadn h\u00e0nh m\u1ed9t trang th\u01b0\u01a1ng m\u1ea1i \u0111i\u1ec7n t\u1eed, tr\u00ean th\u1ef1c t\u1ebf th\u00ec kh\u00e1ch h\u00e0ng lu\u00f4n th\u00edch mua v\u00e0 c\u1ea3m th\u1ea5y an to\u00e0n h\u01a1n khi \u1edf tr\u00ean m\u1ed9t website \u0111\u01b0\u1ee3c b\u1ea3o m\u1eadt t\u1ed1t. Trong b\u00e0i vi\u1ebft\u2026","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"C\u00e1c c\u00e1ch \u0111\u1ec3 c\u1ea3i thi\u1ec7n b\u1ea3o m\u1eadt trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/07\/C%C3%A1c-c%C3%A1ch-%C4%91%E1%BB%83-c%E1%BA%A3i-thi%E1%BB%87n-b%E1%BA%A3o-m%E1%BA%ADt-trong-Magento-2.png?fit=750%2C415&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/07\/C%C3%A1c-c%C3%A1ch-%C4%91%E1%BB%83-c%E1%BA%A3i-thi%E1%BB%87n-b%E1%BA%A3o-m%E1%BA%ADt-trong-Magento-2.png?fit=750%2C415&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/07\/C%C3%A1c-c%C3%A1ch-%C4%91%E1%BB%83-c%E1%BA%A3i-thi%E1%BB%87n-b%E1%BA%A3o-m%E1%BA%ADt-trong-Magento-2.png?fit=750%2C415&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/07\/C%C3%A1c-c%C3%A1ch-%C4%91%E1%BB%83-c%E1%BA%A3i-thi%E1%BB%87n-b%E1%BA%A3o-m%E1%BA%ADt-trong-Magento-2.png?fit=750%2C415&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/8378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/108"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=8378"}],"version-history":[{"count":8,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/8378\/revisions"}],"predecessor-version":[{"id":8388,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/8378\/revisions\/8388"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/8387"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=8378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=8378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=8378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}