Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
restricted_classes.php
Go to the documentation of this file.
1 <?php
14 return [
15  'Zend_Db_Select' => [
16  'replacement' => '\Magento\Framework\DB\Select',
17  'exclude' => [
18  [
19  'type' => 'library',
20  'name' => 'magento/framework',
21  'path' => 'DB/Select.php'
22  ],
23  [
24  'type' => 'library',
25  'name' => 'magento/framework',
26  'path' => 'DB/Adapter/Pdo/Mysql.php'
27  ],
28  [
29  'type' => 'library',
30  'name' => 'magento/framework',
31  'path' => 'Model/ResourceModel/Iterator.php'
32  ],
33  ]
34  ],
35  'Zend_Db_Adapter_Pdo_Mysql' => [
36  'replacement' => '\Magento\Framework\DB\Adapter\Pdo\Mysql',
37  'exclude' => [
38  [
39  'type' => 'library',
40  'name' => 'magento/framework',
41  'path' => 'DB/Adapter/Pdo/Mysql.php'
42  ],
43  ]
44  ],
45  'Magento\Framework\Serialize\Serializer\Serialize' => [
46  'replacement' => 'Magento\Framework\Serialize\SerializerInterface',
47  'exclude' => [
48  [
49  'type' => 'library',
50  'name' => 'magento/framework',
51  'path' => 'App/ObjectManager/ConfigLoader/Compiled.php'
52  ],
53  [
54  'type' => 'library',
55  'name' => 'magento/framework',
56  'path' => 'App/Config/ScopePool.php'],
57  [
58  'type' => 'library',
59  'name' => 'magento/framework',
60  'path' => 'App/ObjectManager/ConfigCache.php'
61  ],
62  [
63  'type' => 'library',
64  'name' => 'magento/framework',
65  'path' => 'App/ObjectManager/ConfigLoader.php'
66  ],
67  [
68  'type' => 'library',
69  'name' => 'magento/framework',
70  'path' => 'DB/Adapter/Pdo/Mysql.php'
71  ],
72  [
73  'type' => 'library',
74  'name' => 'magento/framework',
75  'path' => 'DB/DataConverter/SerializedToJson.php'
76  ],
77  [
78  'type' => 'library',
79  'name' => 'magento/framework',
80  'path' => 'DB/Test/Unit/DataConverter/SerializedToJsonTest.php'
81  ],
82  [
83  'type' => 'library',
84  'name' => 'magento/framework',
85  'path' => 'ObjectManager/Config/Compiled.php'
86  ],
87  [
88  'type' => 'library',
89  'name' => 'magento/framework',
90  'path' => 'Interception/Config/Config.php'
91  ],
92  [
93  'type' => 'library',
94  'name' => 'magento/framework',
95  'path' => 'Interception/PluginList/PluginList.php'
96  ],
97  [
98  'type' => 'library',
99  'name' => 'magento/framework',
100  'path' => 'App/Router/ActionList.php'
101  ],
102  [
103  'type' => 'library',
104  'name' => 'magento/framework',
105  'path' => 'Serialize/Test/Unit/Serializer/SerializeTest.php'
106  ],
107  [
108  'type' => 'setup',
109  'path' => 'src/Magento/Setup/Module/Di/Compiler/Config/Writer/Filesystem.php'
110  ],
111  [
112  'type' => 'module',
113  'name' => 'Magento_Sales',
114  'path' => 'Setup/SerializedDataConverter.php'
115  ],
116  [
117  'type' => 'module',
118  'name' => 'Magento_Sales',
119  'path' => 'Test/Unit/Setup/SerializedDataConverterTest.php'
120  ],
121  [
122  'type' => 'module',
123  'name' => 'Magento_Sales',
124  'path' => 'Test/Unit/Setup/SalesOrderPaymentDataConverterTest.php'
125  ],
126  [
127  'type' => 'library',
128  'name' => 'magento/framework',
129  'path' => 'Flag.php'
130  ],
131  [
132  'type' => 'module',
133  'name' => 'Magento_Widget',
134  'path' => 'Setup/LayoutUpdateConverter.php'
135  ],
136  [
137  'type' => 'module',
138  'name' => 'Magento_Cms',
139  'path' => 'Setup/ContentConverter.php'
140  ],
141  [
142  'type' => 'library',
143  'name' => 'magento/framework',
144  'path' => 'Unserialize/Test/Unit/UnserializeTest.php'
145  ],
146  ]
147  ],
148  'ArrayObject' => [
149  'replacement' => 'Custom class, extended from ArrayObject with overwritten serialize/unserialize methods',
150  'exclude' => [
151  [
152  'type' => 'module',
153  'name' => 'Magento_Theme',
154  'path' => 'Model/Indexer/Design/Config.php'
155  ],
156  [
157  'type' => 'module',
158  'name' => 'Magento_Ui',
159  'path' => 'Model/Manager.php'
160  ],
161  [
162  'type' => 'module',
163  'name' => 'Magento_Ui',
164  'path' => 'Test/Unit/Model/ManagerTest.php'
165  ],
166  [
167  'type' => 'module',
168  'name' => 'Magento_Backend',
169  'path' => 'Model/Menu.php'
170  ],
171  [
172  'type' => 'module',
173  'name' => 'Magento_CatalogSearch',
174  'path' => 'Model/Indexer/Fulltext.php'
175  ],
176  [
177  'type' => 'module',
178  'name' => 'Magento_CatalogSearch',
179  'path' => 'Test/Unit/Model/Indexer/FulltextTest.php'
180  ],
181  [
182  'type' => 'module',
183  'name' => 'Magento_Catalog',
184  'path' => 'Test/Unit/Model/ProductTest.php'
185  ],
186  [
187  'type' => 'module',
188  'name' => 'Magento_CatalogSearch',
189  'path' => 'Model/Indexer/Fulltext.php'
190  ],
191  [
192  'type' => 'library',
193  'name' => 'magento/framework',
194  'path' => 'Test/Unit/FlagTest.php'
195  ],
196  [
197  'type' => 'library',
198  'name' => 'magento/framework',
199  'path' => 'Validator/Test/Unit/Constraint/PropertyTest.php'
200  ],
201  [
202  'type' => 'library',
203  'name' => 'magento/framework',
204  'path' => 'Indexer/Test/Unit/BatchTest.php'
205  ],
206  [
207  'type' => 'library',
208  'name' => 'magento/framework',
209  'path' => 'View/Element/UiComponent/ArrayObjectFactory.php'
210  ],
211  [
212  'type' => 'library',
213  'name' => 'magento/framework',
214  'path' => 'View/Element/UiComponent/Config/Provider/Component/Definition.php'
215  ],
216  [
217  'type' => 'library',
218  'name' => 'magento/framework',
219  'path' => 'Indexer/Action/Base.php'
220  ]
221  ]
222  ],
223  'Magento\Framework\View\Element\UiComponent\ArrayObjectFactory' => [
224  'replacement' => 'Factory that creates custom class, extended from ArrayObject with overwritten '
225  . 'serialize/unserialize methods',
226  'exclude' => [
227  [
228  'type' => 'module',
229  'name' => 'Magento_Ui',
230  'path' => 'Model/Manager.php'
231  ],
232  [
233  'type' => 'module',
234  'name' => 'Magento_Ui',
235  'path' => 'Test/Unit/Model/ManagerTest.php'
236  ],
237  [
238  'type' => 'library',
239  'name' => 'magento/framework',
240  'path' => 'View/Element/UiComponent/Config/Provider/Component/Definition.php'
241  ]
242  ]
243  ]
244 ];