Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/api/MAGETWO-42234-Unable-To-Dis…
Browse files Browse the repository at this point in the history
…able-Webapi' into API-Sprint-57-PR
  • Loading branch information
Cari Spruiell committed Sep 21, 2015
2 parents d7fbd64 + 9d44f82 commit 40a5b8d
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 12 deletions.
4 changes: 4 additions & 0 deletions app/code/Magento/Store/etc/cache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<label>Collections Data</label>
<description>Collection data files.</description>
</type>
<type name="reflection" translate="label,description" instance="Magento\Framework\App\Cache\Type\Reflection">
<label>Reflection Data</label>
<description>API interfaces reflection data.</description>
</type>
<type name="db_ddl" translate="label,description" instance="Magento\Framework\DB\Adapter\DdlCache">
<label>Database DDL operations</label>
<description>Results of DDL queries, such as describing tables or indexes.</description>
Expand Down
5 changes: 5 additions & 0 deletions app/code/Magento/Store/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@
</argument>
</arguments>
</type>
<type name="Magento\Framework\Reflection\MethodsMap">
<arguments>
<argument name="cache" xsi:type="object">Magento\Framework\App\Cache\Type\Reflection</argument>
</arguments>
</type>
<type name="Magento\Framework\Url">
<arguments>
<argument name="scopeType" xsi:type="const">Magento\Store\Model\ScopeInterface::SCOPE_STORE</argument>
Expand Down
12 changes: 0 additions & 12 deletions app/code/Magento/Webapi/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@
<type name="Magento\Framework\Xml\Generator" shared="false" />
<type name="Magento\Framework\Xml\Parser" shared="false" />
<type name="Magento\Framework\Code\Scanner\DirectoryScanner" shared="false" />
<type name="Magento\Server\Reflection" shared="false" />
<type name="Magento\Framework\Reflection\MethodsMap">
<arguments>
<argument name="cache" xsi:type="object">Magento\Framework\App\Cache\Type\Webapi</argument>
</arguments>
</type>
<type name="Magento\Framework\Reflection\DataObjectProcessor">
<arguments>
<argument name="extensionAttributesProcessor" xsi:type="object">Magento\Framework\Reflection\ExtensionAttributesProcessor\Proxy</argument>
<argument name="customAttributesProcessor" xsi:type="object">Magento\Framework\Reflection\CustomAttributesProcessor\Proxy</argument>
</arguments>
</type>
<type name="Magento\Integration\Model\ConfigBasedIntegrationManager">
<plugin name="webapiSetup" type="Magento\Webapi\Model\Plugin\Manager" />
</type>
Expand Down
7 changes: 7 additions & 0 deletions app/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,13 @@
</argument>
</arguments>
</type>
<type name="Magento\Server\Reflection" shared="false" />
<type name="Magento\Framework\Reflection\DataObjectProcessor">
<arguments>
<argument name="extensionAttributesProcessor" xsi:type="object">Magento\Framework\Reflection\ExtensionAttributesProcessor\Proxy</argument>
<argument name="customAttributesProcessor" xsi:type="object">Magento\Framework\Reflection\CustomAttributesProcessor\Proxy</argument>
</arguments>
</type>
<type name="Magento\Framework\Url\Decoder">
<arguments>
<argument name="urlBuilder" xsi:type="object">Magento\Framework\UrlInterface</argument>
Expand Down
30 changes: 30 additions & 0 deletions lib/internal/Magento/Framework/App/Cache/Type/Reflection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\App\Cache\Type;

/**
* System / Cache Management / Cache type "Reflection Data"
*/
class Reflection extends \Magento\Framework\Cache\Frontend\Decorator\TagScope
{
/**
* Cache type code unique among all cache types
*/
const TYPE_IDENTIFIER = 'reflection';

/**
* Cache tag used to distinguish the cache type from all other cache
*/
const CACHE_TAG = 'REFLECTION';

/**
* @param \Magento\Framework\App\Cache\Type\FrontendPool $cacheFrontendPool
*/
public function __construct(\Magento\Framework\App\Cache\Type\FrontendPool $cacheFrontendPool)
{
parent::__construct($cacheFrontendPool->get(self::TYPE_IDENTIFIER), self::CACHE_TAG);
}
}

0 comments on commit 40a5b8d

Please sign in to comment.