{"id":276250,"date":"2016-03-16T12:45:03","date_gmt":"2016-03-16T09:45:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=276250"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=276250","title":{"rendered":"DI \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0432 Magento 2"},"content":{"rendered":"<p>       \u0412 Magento 2 \u0432\u043c\u0435\u0441\u0442\u043e rewrite&#8217;\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0432 \u043f\u043e\u0442\u043e\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0440\u0435\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438:<\/p>\n<ul>\n<li>before<\/li>\n<li>after<\/li>\n<li>around<\/li>\n<\/ul>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432 <a href=\"http:\/\/devdocs.magento.com\/guides\/v2.0\/extension-dev-guide\/plugins.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>, \u0430 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0417\u0430\u0434\u0430\u0447\u0430<\/h2>\n<p>  \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0434\u043b\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0447\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0432\u0435\u043b\u0441\u044f \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0441\u043a\u043b\u0430\u0434\u0443. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0432 \u0431\u0430\u0437\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043d\u043e\u0432\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 <code>warehouse<\/code> \u0438 \u0443\u0447\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u043d\u0430 \u0441\u043a\u043b\u0430\u0434\u0435 \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 <code>warehouse_item<\/code>, \u0433\u0434\u0435 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0441\u043a\u043b\u0430\u0434\u0430 \u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430:<\/p>\n<pre><code>CREATE TABLE warehouse_item (   product_id ...,   warehouse_id ...,   qty ...,   PRIMARY KEY (product_id, warehouse_id),   ... )<\/code><\/pre>\n<p>  \u0422.\u043e., \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435, \u0432 \u0433\u0440\u0438\u0434\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u043f\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u043e\u043b\u0431\u0446\u0435 &quot;Quantity&quot; (<code>cataloginventory_stock_item.qty<\/code>) \u0438\u0445 \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <code>SUM(warehouse_item.qty)<\/code>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6ac\/f93\/bb0\/6acf93bb0c754f2fa3db07d2833f3c3f.png\"\/><br \/>  \u041f\u0440\u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u0434\u0430 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0433\u0440\u0438\u0434 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 <code>Magento\\Catalog\\Ui\\DataProvider\\Product\\ProductDataProvider<\/code>, \u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 DI (<code>magento\/module-catalog-inventory\/etc\/adminhtml\/di.xml<\/code>):<\/p>\n<pre><code>&lt;type name=&quot;Magento\\Catalog\\Ui\\DataProvider\\Product\\ProductDataProvider&quot;&gt;     &lt;arguments&gt;         &lt;argument name=&quot;addFieldStrategies&quot; xsi:type=&quot;array&quot;&gt;             &lt;item name=&quot;qty&quot; xsi:type=&quot;object&quot;&gt;Magento\\CatalogInventory\\Ui\\DataProvider\\Product\\AddQuantityFieldToCollection&lt;\/item&gt;         &lt;\/argument&gt;         ...     &lt;\/arguments&gt; &lt;\/type&gt;<\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u043a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 <code>AddQuantityFieldToCollection<\/code>:<\/p>\n<pre><code>namespace Magento\\CatalogInventory\\Ui\\DataProvider\\Product; ... class AddQuantityFieldToCollection implements AddFieldToCollectionInterface {     public function addField(Collection $collection, $field, $alias = null)     {         $collection-&gt;joinField(             'qty',             'cataloginventory_stock_item',             'qty',             'product_id=entity_id',             '{{table}}.stock_id=1',             'left'         );     } }<\/code><\/pre>\n<p>  \u0422.\u0435., \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u0435\u0442\u043e\u0434 <code>addField<\/code> \u043d\u0435 \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b \u0438 \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b \u043a \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0438\u0437 <code>cataloginventory_stock_item<\/code>, \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u0430 <code>around<\/code>.<\/p>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/h2>\n<p>  <\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 DI<\/h3>\n<p>  \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 DI \u043d\u0430\u0448\u0435\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f (<code>etc\/di.xml<\/code> \u0438\u043b\u0438 <code>etc\/adminhtml\/di.xml<\/code>):<\/p>\n<pre><code>&lt;?xml version=&quot;1.0&quot;?&gt; &lt;config ...&gt;     &lt;type name=&quot;Magento\\CatalogInventory\\Ui\\DataProvider\\Product\\AddQuantityFieldToCollection&quot;&gt;         &lt;plugin                 name=&quot;vendor_module_plugin&quot;                 type=&quot;Vendor\\Module\\Plugin\\AddQuantityFieldToCollection&quot;                 sortOrder=&quot;100&quot;                 disabled=&quot;false&quot;\/&gt;     &lt;\/type&gt; &lt;\/config&gt;<\/code><\/pre>\n<p>  <\/p>\n<h3>\u041a\u043e\u0434 \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/h3>\n<p>  \u0414\u043b\u044f around-\u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 <code>addField<\/code> \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0435 \u043c\u0435\u0442\u043e\u0434 <code>aroundAddField<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 &quot;<em>\u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e<\/em>&quot;:<\/p>\n<pre><code>namespace Vendor\\Module\\Plugin;  use Magento\\CatalogInventory\\Ui\\DataProvider\\Product\\AddQuantityFieldToCollection as Subject;  class AddQuantityFieldToCollection {     public function aroundAddField(Subject $subject, \\Closure $proceed) {         return;     } }<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441<\/h2>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 (<code>.\/var\/generation\/*<\/code>) \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0447\u0435\u0440\u0435 Admin WebUI \u0432 \u0433\u0440\u0438\u0434 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u043a\u043e\u0434 \u0432\u043d\u043e\u0432\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e &quot;\u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0447\u0438\u043a\u0430&quot;&quot; \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 <code>.\/var\/generation\/Magento\/CatalogInventory\/Ui\/DataProvider\/Product\/AddQuantityFieldToCollection\/Interceptor.php<\/code>:<\/p>\n<pre><code>&lt;?php namespace Magento\\CatalogInventory\\Ui\\DataProvider\\Product\\AddQuantityFieldToCollection;  \/**  * Interceptor class for @see  * \\Magento\\CatalogInventory\\Ui\\DataProvider\\Product\\AddQuantityFieldToCollection  *\/ class Interceptor extends \\Magento\\CatalogInventory\\Ui\\DataProvider\\Product\\AddQuantityFieldToCollection implements \\Magento\\Framework\\Interception\\InterceptorInterface {     use \\Magento\\Framework\\Interception\\Interceptor;      public function __construct()     {         $this-&gt;___init();     }      \/**      * {@inheritdoc}      *\/     public function addField(\\Magento\\Framework\\Data\\Collection $collection, $field, $alias = null)     {         $pluginInfo = $this-&gt;pluginList-&gt;getNext($this-&gt;subjectType, 'addField');         if (!$pluginInfo) {             return parent::addField($collection, $field, $alias);         } else {             return $this-&gt;___callPlugins('addField', func_get_args(), $pluginInfo);         }     } }<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0421\u0442\u0435\u043a\u0442\u0440\u0435\u0439\u0441 \u0432\u044b\u0437\u043e\u0432\u043e\u0432<\/h2>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/4ce\/f81\/ac3\/4cef81ac37ae4db2af23238a8ae4fc48.png\"\/><br \/>  \u041e\u0440\u0430\u043d\u0436\u0435\u0432\u044b\u043c \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0435\u043d \u043a\u043b\u0430\u0441\u0441, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 Magento 2 (26-\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u2014 \u044d\u0442\u043e <code>___callPlugins<\/code> \u043f\u043e\u0441\u043b\u0435 else), \u0431\u0435\u043b\u044b\u043c \u2014 \u043d\u0430\u0448 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d.<\/p>\n<h2>\u0412\u044b\u0432\u043e\u0434<\/h2>\n<p>  \u0418\u0437 \u0441\u0442\u0435\u043a\u0442\u0440\u0435\u0439\u0441\u0430 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e DI \u0432 Magento 2 \u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u043b\u0430\u0441\u0441\u044b, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0437\u0430\u0434\u0430\u043d\u044b \u043f\u043b\u0430\u0433\u0438\u043d\u044b, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c &quot;\u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0447\u0438\u043a\u043e\u043c&quot;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 <code>before<\/code>, <code>after<\/code>, <code>around<\/code> &quot;\u043e\u0431\u0435\u0440\u0442\u043a\u0438&quot; \u0434\u043b\u044f \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432:<\/p>\n<pre><code>return $this-&gt;___callPlugins('addField', func_get_args(), $pluginInfo);<\/code><\/pre>\n<p>  \u0430 \u0438\u043d\u043e\u0433\u0434\u0430 \u0438 \u0441\u0430\u043c\u0438 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b:<\/p>\n<pre><code>return parent::addField($collection, $field, $alias);<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0421\u0441\u044b\u043b\u043a\u0438<\/h2>\n<p>  <\/p>\n<ul>\n<li><a href=\"http:\/\/devdocs.magento.com\/guides\/v2.0\/extension-dev-guide\/plugins.html\">Developer Documentation (2.0) \u2014 Magento plug-ins<\/a><\/li>\n<li><a href=\"http:\/\/alanstorm.com\/magento_2_object_manager_plugin_system\">Magento 2 Object Manager Plugin System<\/a><\/li>\n<\/ul>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/279413\/\"> https:\/\/habrahabr.ru\/post\/279413\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0412 Magento 2 \u0432\u043c\u0435\u0441\u0442\u043e rewrite&#8217;\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0432 \u043f\u043e\u0442\u043e\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0440\u0435\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438:<\/p>\n<ul>\n<li>before<\/li>\n<li>after<\/li>\n<li>around<\/li>\n<\/ul>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432 <a href=\"http:\/\/devdocs.magento.com\/guides\/v2.0\/extension-dev-guide\/plugins.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>, \u0430 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-276250","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/276250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=276250"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/276250\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=276250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=276250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=276250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}