{"id":2520,"date":"2015-01-21T12:47:58","date_gmt":"2015-01-21T03:47:58","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=2520"},"modified":"2015-01-23T10:49:08","modified_gmt":"2015-01-23T01:49:08","slug":"symfony2%e3%81%a7%e3%82%82%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3php%e3%82%af%e3%83%a9%e3%82%b9%e7%b7%a8","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/symfony2%e3%81%a7%e3%82%82%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3php%e3%82%af%e3%83%a9%e3%82%b9%e7%b7%a8\/","title":{"rendered":"Symfony2\u3067\u3082\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3(PHP\u30af\u30e9\u30b9\u7de8)"},"content":{"rendered":"<p>\u4eca\u56de\u304b\u3089\u306f\u3001\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u3063\u3066\u3001\u30b9\u30de\u30fc\u30c8\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u307f\u3088\u3046\u3088\uff01\u3068\u3044\u3046\u3053\u3068\u3067\u3001Symfony2\u3067\u3082\u7f8e\u3057\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u3088\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001PHP\u306e\u30af\u30e9\u30b9\u3092\u7528\u3044\u3066\u8a18\u8f09\u3059\u308b\u306e\u3067\u3001Symfony2\u9650\u5b9a\u3068\u3044\u3046\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3001\u6b21\u56de\u4ee5\u964dSymfony2\u306e\u6a5f\u80fd\u3092\u30d5\u30eb\u30d1\u30ef\u30fc\u3067\u767a\u63ee\u3057\u305f\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306b\u95a2\u3057\u3066\u66f8\u304d\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306b\u95a2\u3057\u3066\u306f<br \/>\n<a href=\"http:\/\/www.nulab.co.jp\/designPatterns\/designPatterns1\/designPatterns1-1.html\" title=\"http:\/\/www.nulab.co.jp\/designPatterns\/designPatterns1\/designPatterns1-1.html\">http:\/\/www.nulab.co.jp\/designPatterns\/designPatterns1\/designPatterns1-1.html<\/a><br \/>\n\u3042\u305f\u308a\u3092\u898b\u308b\u3068\u3088\u3044\u3067\u3059\u3001\u30ea\u30f3\u30af\u5148\u306fJava\u3067\u8a18\u8f09\u3055\u308c\u3044\u307e\u3059\u304c\u53c2\u8003\u306b\u306f\u306a\u308a\u307e\u3059\u3002\u8981\u3059\u308b\u306b\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u7d20\u6674\u3089\u3057\u3044\u70b9\u3092\u30d1\u30bf\u30fc\u30f3\u5316\u3057\u3066\u3044\u308b\u3068\u601d\u3063\u3066\u304f\u308c\u308c\u3070\u3088\u3044\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5177\u4f53\u4f8b\u3068\u3057\u3066\u6319\u3052\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nclass LongMethod{\r\n    \r\n    public $resA;\r\n    \r\n    public $resB;\r\n    \r\n    \/**\r\n     * very complex long method\r\n     *\/\r\n    public function method($a, $b, $wayA, $wayB){\r\n        switch ($wayA) {\r\n            case &quot;sqrt&quot; :\r\n                $this-&gt;resA = $a ^ 2;\r\n                break;\r\n            case &quot;plus&quot; :\r\n                $this-&gt;resA = $a + 10;\r\n                break;\r\n            case &quot;minus&quot; :\r\n                $this-&gt;resA = $a - 10;\r\n                break;\r\n            default :\r\n                $this-&gt;resA = $a;\r\n        }\r\n        \r\n        $b %= 5;\r\n        switch ($wayB) {\r\n            case &quot;sqrt&quot; :\r\n                $this-&gt;resB = $b ^ 2;\r\n                break;\r\n            case &quot;plus&quot; :\r\n                $this-&gt;resB = $b + 10;\r\n                break;\r\n            case &quot;minus&quot; :\r\n                $this-&gt;resB = $b - 10;\r\n                break;\r\n            default :\r\n                $this-&gt;resB = $b;\r\n        }\r\n    }\r\n}\r\n\r\n$datas = Array(\r\n    Array(&quot;a&quot; =&gt; 1, &quot;b&quot; =&gt; 2, &quot;wayA&quot; =&gt; &quot;minus&quot;, &quot;wayB&quot; =&gt; &quot;sqrt&quot; ),\r\n    Array(&quot;a&quot; =&gt; 3, &quot;b&quot; =&gt; 4, &quot;wayA&quot; =&gt; &quot;plus&quot;, &quot;wayB&quot; =&gt; &quot;minus&quot; ),\r\n    Array(&quot;a&quot; =&gt; 5, &quot;b&quot; =&gt; 6, &quot;wayA&quot; =&gt; &quot;&quot;, &quot;wayB&quot; =&gt; &quot;plus&quot; ),\r\n    Array(&quot;a&quot; =&gt; 7, &quot;b&quot; =&gt; 8, &quot;wayA&quot; =&gt; &quot;sqrt&quot;, &quot;wayB&quot; =&gt; &quot;&quot; )\r\n);\r\n\r\nforeach ($datas as $data) {\r\n    $methodClass = new LongMethod();\r\n    $methodClass-&gt;method($data&#x5B;&quot;a&quot;], $data&#x5B;&quot;b&quot;], $data&#x5B;&quot;wayA&quot;], $data&#x5B;&quot;wayB&quot;]);\r\n    \/\/ print -9, 13, 5, 49\r\n    echo &quot;resA - {$methodClass-&gt;resA}\\n&quot;;\r\n    \/\/ print 4, -6, 16, 8\r\n    echo &quot;resB - {$methodClass-&gt;resB}\\n&quot;;\r\n}\r\n<\/pre>\n<p>\u307e\u3041\u3053\u3093\u306a\u611f\u3058\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3001\u6d41\u308c\u3068\u3057\u3066\u306f<\/p>\n<ol>\n<li>A\u306b\u95a2\u3057\u3066\u306fWayA\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u51e6\u7406\u3092\u5206\u5c90<\/li>\n<li>B\u306b\u95a2\u3057\u3066\u306f\u4e00\u65e65\u3067\u5272\u3063\u305f\u3042\u307e\u308a\u3092\u53d6\u5f97\u3057\u305f\u4e0a\u3067\u3001WayB\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u51e6\u7406\u3092\u5206\u5c90<\/li>\n<\/ol>\n<p>\u3068\u3044\u3046\u3088\u3046\u306a\u6d41\u308c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3055\u3066\u3001\u3053\u306e\u30b3\u30fc\u30c9\u306e\u554f\u984c\u70b9\u306f\u4ee5\u4e0b\u306e\u70b9\u306b\u306a\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<ol>\n<li>a\u306b\u95a2\u3059\u308b\u51e6\u7406\u3068b\u306b\u95a2\u3059\u308b\u51e6\u7406\u304c\u5358\u4e00\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u96c6\u7d04\u3057\u3066\u3044\u308b<\/li>\n<li>a\u306b\u95a2\u3059\u308b\u6761\u4ef6\u51e6\u7406\u306e\u4e2d\u306b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u542b\u307e\u308c\u3066\u3044\u308b<\/li>\n<li>b\u306b\u95a2\u3059\u308b\u6761\u4ef6\u51e6\u7406\u306e\u4e2d\u306b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u542b\u307e\u308c\u3066\u3044\u308b<\/li>\n<\/ol>\n<p>\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306f\u3053\u306e\u3088\u3046\u306a\u554f\u984c\u70b9\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u3042\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306f\u554f\u984c\u70b91\u3092\u89e3\u6c7a\u3057\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nclass MiddleMethod{\r\n    \r\n    public $resA;\r\n    \r\n    public $resB;\r\n    \r\n    \/**\r\n     * method A\r\n     * @param unknown $a\r\n     * @param unknown $wayA\r\n     *\/\r\n    public function methodA ($a, $wayA) {\r\n        switch ($wayA) {\r\n            case &quot;sqrt&quot; :\r\n                $this-&gt;resA = $a ^ 2;\r\n                break;\r\n            case &quot;plus&quot; :\r\n                $this-&gt;resA = $a + 10;\r\n                break;\r\n            case &quot;minus&quot; :\r\n                $this-&gt;resA = $a - 10;\r\n                break;\r\n            default :\r\n                $this-&gt;resA = $a;\r\n        }\r\n    }\r\n    \r\n    \/**\r\n     * method B\r\n     * @param unknown $b\r\n     * @param unknown $wayB\r\n     *\/\r\n    public function methodB ($b, $wayB) {\r\n        $b %= 5;\r\n        switch ($wayB) {\r\n            case &quot;sqrt&quot; :\r\n                $this-&gt;resB = $b ^ 2;\r\n                break;\r\n            case &quot;plus&quot; :\r\n                $this-&gt;resB = $b + 10;\r\n                break;\r\n            case &quot;minus&quot; :\r\n                $this-&gt;resB = $b - 10;\r\n                break;\r\n            default :\r\n                $this-&gt;resB = $b;\r\n        }\r\n    }\r\n    \r\n    \/**\r\n     * very complex long method\r\n     *\/\r\n    public function method($a, $b, $wayA, $wayB){\r\n        methodA($a, $wayA);\r\n        \r\n        methodB($b, $wayB);\r\n    }\r\n}\r\n<\/pre>\n<p>\u306f\u3044\u3001method\u306e\u4e2d\u3092a\u306e\u51e6\u7406\u3068b\u306e\u51e6\u7406\u306b\u5206\u96e2\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306b\u3001\u554f\u984c\u70b92\u3092\u89e3\u6c7a\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3001\u3053\u3053\u304b\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3092\u30d5\u30eb\u6d3b\u7528\u3057\u3066\u3044\u304d\u307e\u3059<\/p>\n<h2>\u30b9\u30c8\u30e9\u30c6\u30b8\u30d1\u30bf\u30fc\u30f3<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nInterface methodAInterface {\r\n    public function methodA($a);\r\n}\r\n\r\nclass methodASqrt implements methodAInterface {\r\n    public function methodA ($a) {\r\n        return $a ^ 2;\r\n    }\r\n}\r\n\r\nclass methodAPlus implements methodAInterface {\r\n    public function methodA ($a) {\r\n        return 10 + $a;\r\n    }\r\n}\r\n\r\nclass methodAMinus implements methodAInterface {\r\n    public function methodA ($a) {\r\n        return $a - 10;\r\n    }\r\n}\r\n\r\nclass methodADefault implements methodAInterface {\r\n    public function methodA ($a) {\r\n        return $a;\r\n    }\r\n}\r\n\r\nclass ShortAMethod{\r\n    \r\n    public $resA;\r\n    \r\n    public $resB;\r\n    \r\n    \/**\r\n     * method A\r\n     * @param unknown $a\r\n     * @param unknown $wayA\r\n     *\/\r\n    public function methodA ($a, $wayA) {\r\n        $methodAClass;\r\n        switch ($wayA) {\r\n            case &quot;sqrt&quot; :\r\n                $methodAClass = new methodASqrt();\r\n                break;\r\n            case &quot;plus&quot; :\r\n                $methodAClass = new methodAPlus();\r\n                break;\r\n            case &quot;minus&quot; :\r\n                $methodAClass = new methodAMinus();\r\n                break;\r\n            default :\r\n                $methodAClass = new methodADefault();\r\n        }\r\n        $this-&gt;resA = $methodAClass-&gt;methodA($a);\r\n    }\r\n    \r\n    \/**\r\n     * method B\r\n     * @param unknown $b\r\n     * @param unknown $wayB\r\n     *\/\r\n    public function methodB ($b, $wayB) {\r\n        $b %= 5;\r\n        switch ($wayB) {\r\n            case &quot;sqrt&quot; :\r\n                $this-&gt;resB = $b ^ 2;\r\n                break;\r\n            case &quot;plus&quot; :\r\n                $this-&gt;resB = $b + 10;\r\n                break;\r\n            case &quot;minus&quot; :\r\n                $this-&gt;resB = $b - 10;\r\n                break;\r\n            default :\r\n                $this-&gt;resB = $b;\r\n        }\r\n    }\r\n    \r\n    \/**\r\n     * very short method\r\n     *\/\r\n    public function method($a, $b, $wayA, $wayB){\r\n        methodA($a, $wayA);\r\n        \r\n        methodB($b, $wayB);\r\n    }\r\n}\r\n<\/pre>\n<p>\u306f\u3044\u3001\u3053\u308c\u3067\u3001\u6761\u4ef6\u5206\u5c90\u3068\u305d\u308c\u305e\u308c\u306e\u51e6\u7406\u3092\u5206\u96e2\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u3053\u3053\u304b\u3089\u3055\u3089\u306b\u3001\u30af\u30e9\u30b9\u4f5c\u6210\u3092\u5206\u96e2\u3059\u308b\u30d5\u30a1\u30af\u30c8\u30ea\u30d1\u30bf\u30fc\u30f3\u3068\u3044\u3046\u3082\u306e\u3082\u5b9f\u88c5\u3059\u308c\u3070\u306a\u304a\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4e00\u5fdc\u3001\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u306e\u6709\u7528\u6027\u3092\u8ff0\u3079\u3066\u304a\u304f\u3068\u3001\u4eca\u56de\u3067\u3044\u3048\u3070\u3001Switch\u5206\u306eCase\u306e\u6570\u304c\u5897\u52a0\u3057\u305f\u5834\u5408\u306e\u5bfe\u51e6\u304c\u3057\u3084\u3059\u304f\u306a\u308b\u3068\u3044\u3046\u70b9\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u7d9a\u3044\u3066\u554f\u984c\u70b93\u3092\u89e3\u6c7a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3001b\u306b\u95a2\u3059\u308b\u51e6\u7406\u306f\u3001\u5206\u5c90\u3059\u308b\u524d\u306b\u5171\u901a\u306e\u51e6\u7406\u304c\u5b58\u5728\u3057\u3066\u3044\u307e\u3059<\/p>\n<h2>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e1\u30bd\u30c3\u30c9<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nInterface methodAInterface {\r\n    public function methodA($a);\r\n}\r\n\r\nclass methodASqrt implements methodAInterface {\r\n    public function methodA ($a) {\r\n        return $a ^ 2;\r\n    }\r\n}\r\n\r\nclass methodAPlus implements methodAInterface {\r\n    public function methodA ($a) {\r\n        return 10 + $a;\r\n    }\r\n}\r\n\r\nclass methodAMinus implements methodAInterface {\r\n    public function methodA ($a) {\r\n        return $a - 10;\r\n    }\r\n}\r\n\r\nclass methodADefault implements methodAInterface {\r\n    public function methodA ($a) {\r\n        return $a;\r\n    }\r\n}\r\n\r\nabstract class methodBAbstract {\r\n    \r\n    public function methodB($b) {\r\n        $this-&gt;commonMethod($b);\r\n        return $this-&gt;diffMethod($b);\r\n    }\r\n    \r\n    protected function commonMethod(&amp;$b) {\r\n        $b %= 5;\r\n    }\r\n    \r\n    abstract protected function diffMethod($b);\r\n    \r\n}\r\n\r\nclass methodBSqrt extends methodBAbstract {\r\n    protected function diffMethod ($b) {\r\n        return $b ^ 2;\r\n    }\r\n}\r\n\r\nclass methodBPlus extends methodBAbstract {\r\n    protected function diffMethod ($b) {\r\n        return $b + 10;\r\n    }\r\n}\r\n\r\nclass methodBMinus extends methodBAbstract {\r\n    protected function diffMethod ($b) {\r\n        return $b - 10;\r\n    }\r\n}\r\n\r\nclass methodBDefault extends methodBAbstract {\r\n    protected function diffMethod ($b) {\r\n        return $b;\r\n    }\r\n}\r\n\r\nclass ShortABMethod{\r\n    \r\n    public $resA;\r\n    \r\n    public $resB;\r\n    \r\n    \/**\r\n     * method A\r\n     * @param unknown $a\r\n     * @param unknown $wayA\r\n     *\/\r\n    public function methodA ($a, $wayA) {\r\n        $methodAClass;\r\n        switch ($wayA) {\r\n            case &quot;sqrt&quot; :\r\n                $methodAClass = new methodASqrt();\r\n                break;\r\n            case &quot;plus&quot; :\r\n                $methodAClass = new methodAPlus();\r\n                break;\r\n            case &quot;minus&quot; :\r\n                $methodAClass = new methodAMinus();\r\n                break;\r\n            default :\r\n                $methodAClass = new methodADefault();\r\n        }\r\n        $this-&gt;resA = $methodAClass-&gt;methodA($a);\r\n    }\r\n    \r\n    \/**\r\n     * method B\r\n     * @param unknown $b\r\n     * @param unknown $wayB\r\n     *\/\r\n    public function methodB ($b, $wayB) {\r\n        $methodBClass;\r\n        switch ($wayB) {\r\n            case &quot;sqrt&quot; :\r\n                $methodBClass = new methodBSqrt();\r\n                break;\r\n            case &quot;plus&quot; :\r\n                $methodBClass = new methodBPlus();\r\n                break;\r\n            case &quot;minus&quot; :\r\n                $methodBClass = new methodBMinus();\r\n                break;\r\n            default :\r\n                $methodBClass = new methodBDefault();\r\n        }\r\n        $this-&gt;resB = $methodBClass-&gt;methodB($b);\r\n    }\r\n    \r\n    \/**\r\n     * very short method\r\n     *\/\r\n    public function method($a, $b, $wayA, $wayB){\r\n        methodA($a, $wayA);\r\n        \r\n        methodB($b, $wayB);\r\n    }\r\n}\r\n<\/pre>\n<p>Abstract\u3067\u30af\u30e9\u30b9\u3092\u767a\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u5171\u901a\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u7dad\u6301\u3057\u305f\u307e\u307e\u3001\u51e6\u7406\u3092\u5206\u5c90\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u3001\u5b9f\u969b\u306b\u306f\u3001\u5404\u30af\u30e9\u30b9\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u5b9f\u969b\u306b\u306f\u5225\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u3079\u304d\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u4ee5\u4e0a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u304b\u3089\u306f\u3001\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u3063\u3066\u3001\u30b9\u30de\u30fc\u30c8\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u307f\u3088\u3046\u3088\uff01\u3068\u3044\u3046\u3053\u3068\u3067\u3001Symfony2\u3067\u3082\u7f8e\u3057\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u3088\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002 \u4eca\u56de\u306f\u3001PHP\u306e\u30af\u30e9\u30b9\u3092\u7528\u3044\u3066\u8a18\u8f09\u3059\u308b\u306e\u3067\u3001Symfony2\u9650\u5b9a\u3068\u3044&#8230;<\/p>\n","protected":false},"author":34,"featured_media":1751,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[9],"tags":[],"class_list":{"0":"post-2520","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-dev","8":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/2520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=2520"}],"version-history":[{"count":2,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/2520\/revisions"}],"predecessor-version":[{"id":2575,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/2520\/revisions\/2575"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/1751"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=2520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=2520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=2520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}