-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdi.xml
113 lines (113 loc) · 6.98 KB
/
di.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="ClawRock\Debug\Api\ProfileRepositoryInterface" type="ClawRock\Debug\Model\ProfileRepository"/>
<preference for="ClawRock\Debug\Serializer\SerializerInterface" type="ClawRock\Debug\Serializer\Serializer"/>
<virtualType name="ClawRock\Debug\Model\Session\Storage" type="Magento\Framework\Session\Storage">
<arguments>
<argument name="namespace" xsi:type="string">debug</argument>
</arguments>
</virtualType>
<type name="ClawRock\Debug\Model\Session">
<arguments>
<argument name="storage" xsi:type="object">ClawRock\Debug\Model\Session\Storage</argument>
</arguments>
</type>
<type name="ClawRock\Debug\Logger\Handler">
<arguments>
<argument name="filesystem" xsi:type="object">Magento\Framework\Filesystem\Driver\File</argument>
</arguments>
</type>
<type name="ClawRock\Debug\Logger\Logger">
<arguments>
<argument name="name" xsi:type="string">profiler</argument>
<argument name="handlers" xsi:type="array">
<item name="system" xsi:type="object">ClawRock\Debug\Logger\Handler</item>
</argument>
</arguments>
</type>
<type name="ClawRock\Debug\Model\Info\CustomerInfo">
<arguments>
<argument name="session" xsi:type="object">Magento\Customer\Model\Session\Proxy</argument>
</arguments>
</type>
<type name="ClawRock\Debug\Model\Info\RequestInfo">
<arguments>
<argument name="session" xsi:type="object">ClawRock\Debug\Model\Session\Proxy</argument>
</arguments>
</type>
<type name="ClawRock\Debug\Observer\ValidateRedirect">
<arguments>
<argument name="session" xsi:type="object">ClawRock\Debug\Model\Session\Proxy</argument>
</arguments>
</type>
<type name="Magento\Framework\Phrase\Renderer\Translate">
<plugin name="ClawRock_Debug::translation_collector_plugin" type="ClawRock\Debug\Plugin\Collector\TranslationCollectorPlugin"/>
</type>
<type name="Magento\Framework\App\Cache">
<plugin name="ClawRock_Debug::cache_collector_plugin" type="ClawRock\Debug\Plugin\Collector\CacheCollectorPlugin"/>
</type>
<type name="Magento\Framework\App\Http">
<plugin name="ClawRock_Debug::time_collector_plugin" type="ClawRock\Debug\Plugin\Collector\TimeCollectorPlugin"/>
<plugin name="ClawRock_Debug::whoops_error_handler_plugin" type="ClawRock\Debug\Plugin\ErrorHandler\WhoopsPlugin"/>
</type>
<type name="Magento\Framework\Event\Invoker\InvokerDefault">
<plugin name="ClawRock_Debug::event_collector_plugin" type="ClawRock\Debug\Plugin\Collector\EventCollectorPlugin"/>
</type>
<type name="Magento\Framework\App\PageCache\Kernel">
<plugin name="ClawRock_Debug::page_cache_kernel_plugin" type="ClawRock\Debug\Plugin\PageCache\KernelPlugin"/>
</type>
<type name="Magento\Framework\Model\ResourceModel\Db\AbstractDb">
<plugin name="ClawRock_Debug::model_collector_plugin" type="ClawRock\Debug\Plugin\Collector\ModelCollectorPlugin"/>
</type>
<type name="Magento\Eav\Model\Entity\AbstractEntity">
<plugin name="ClawRock_Debug::model_collector_plugin" type="ClawRock\Debug\Plugin\Collector\ModelCollectorPlugin"/>
</type>
<type name="ClawRock\Debug\Model\ProfileRepository">
<plugin name="ClawRock_Debug::request_time_plugin" type="ClawRock\Debug\Plugin\ProfileRepository\RequestTimePlugin"/>
</type>
<type name="Magento\Config\Model\Config\TypePool">
<arguments>
<argument name="sensitive" xsi:type="array">
<item name="clawrock_debug/general/allowed_ips" xsi:type="string">1</item>
</argument>
<argument name="environment" xsi:type="array">
<item name="clawrock_debug/general/active" xsi:type="string">1</item>
<item name="clawrock_debug/general/active_adminhtml" xsi:type="string">1</item>
<item name="clawrock_debug/general/allowed_ips" xsi:type="string">1</item>
<item name="clawrock_debug/general/error_handler" xsi:type="string">1</item>
<item name="clawrock_debug/time/precision" xsi:type="string">1</item>
<item name="clawrock_debug/collector/ajax" xsi:type="string">1</item>
<item name="clawrock_debug/collector/cache" xsi:type="string">1</item>
<item name="clawrock_debug/collector/config" xsi:type="string">1</item>
<item name="clawrock_debug/collector/customer" xsi:type="string">1</item>
<item name="clawrock_debug/collector/database" xsi:type="string">1</item>
<item name="clawrock_debug/collector/event" xsi:type="string">1</item>
<item name="clawrock_debug/collector/plugin" xsi:type="string">1</item>
<item name="clawrock_debug/collector/layout" xsi:type="string">1</item>
<item name="clawrock_debug/collector/memory" xsi:type="string">1</item>
<item name="clawrock_debug/collector/model" xsi:type="string">1</item>
<item name="clawrock_debug/collector/request" xsi:type="string">1</item>
<item name="clawrock_debug/collector/time" xsi:type="string">1</item>
<item name="clawrock_debug/collector/translation" xsi:type="string">1</item>
<item name="clawrock_debug/performance/core_color" xsi:type="string">1</item>
<item name="clawrock_debug/performance/routing_color" xsi:type="string">1</item>
<item name="clawrock_debug/performance/config_color" xsi:type="string">1</item>
<item name="clawrock_debug/performance/event_color" xsi:type="string">1</item>
<item name="clawrock_debug/performance/layout_color" xsi:type="string">1</item>
<item name="clawrock_debug/performance/eav_color" xsi:type="string">1</item>
<item name="clawrock_debug/performance/controller_color" xsi:type="string">1</item>
<item name="clawrock_debug/performance/template_color" xsi:type="string">1</item>
<item name="clawrock_debug/performance/debug_color" xsi:type="string">1</item>
<item name="clawrock_debug/performance/unknown_color" xsi:type="string">1</item>
</argument>
</arguments>
</type>
<type name="Magento\Framework\Console\CommandListInterface">
<arguments>
<argument name="commands" xsi:type="array">
<item name="ClawRock_Debug::enable_database_profiler" xsi:type="object">ClawRock\Debug\Console\Command\DatabaseProfilerEnableCommand</item>
<item name="ClawRock_Debug::disable_database_profiler" xsi:type="object">ClawRock\Debug\Console\Command\DatabaseProfilerDisableCommand</item>
</argument>
</arguments>
</type>
</config>