|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * Copyright © Magento, Inc. All rights reserved. |
| 4 | + * See COPYING.txt for license details. |
| 5 | + */ |
| 6 | + |
| 7 | +/** |
| 8 | + * Classes that are restricted to use directly. |
| 9 | + * A <replacement> will be suggested to be used instead. |
| 10 | + * Use <whitelist> to specify files and directories that are allowed to use restricted classes. |
| 11 | + * |
| 12 | + * Format: array(<class_name>, <replacement>[, array(<whitelist>)]]) |
| 13 | + */ |
| 14 | +return [ |
| 15 | + 'Zend_Db_Select' => [ |
| 16 | + 'replacement' => '\Magento\Framework\DB\Select', |
| 17 | + 'exclude' => [ |
| 18 | + 'Magento/Framework/DB/Select.php', |
| 19 | + 'Magento/Framework/DB/Adapter/Pdo/Mysql.php', |
| 20 | + 'Magento/Framework/Model/ResourceModel/Iterator.php' |
| 21 | + ] |
| 22 | + ], |
| 23 | + 'Zend_Db_Adapter_Pdo_Mysql' => [ |
| 24 | + 'replacement' => '\Magento\Framework\DB\Adapter\Pdo\Mysql', |
| 25 | + 'exclude' => [ |
| 26 | + 'Magento/Framework/DB/Adapter/Pdo/Mysql.php' |
| 27 | + ] |
| 28 | + ], |
| 29 | + 'Magento\Framework\Serialize\Serializer\Serialize' => [ |
| 30 | + 'replacement' => 'Magento\Framework\Serialize\SerializerInterface', |
| 31 | + 'exclude' => [ |
| 32 | + 'Magento/Framework/App/ObjectManager/ConfigLoader/Compiled.php', |
| 33 | + 'Magento/Framework/App/Config/ScopePool.php', |
| 34 | + 'Magento/Framework/App/ObjectManager/ConfigCache.php', |
| 35 | + 'Magento/Framework/App/ObjectManager/ConfigLoader.php', |
| 36 | + 'Magento/Framework/DB/Adapter/Pdo/Mysql.php', |
| 37 | + 'Magento/Framework/DB/DataConverter/SerializedToJson.php', |
| 38 | + 'Magento/Framework/DB/Test/Unit/DataConverter/SerializedToJsonTest.php', |
| 39 | + 'Magento/Framework/ObjectManager/Config/Compiled.php', |
| 40 | + 'Magento/Framework/Interception/Config/Config.php', |
| 41 | + 'Magento/Framework/Interception/PluginList/PluginList.php', |
| 42 | + 'Magento/Framework/App/Router/ActionList.php', |
| 43 | + 'Magento/Framework/Serialize/Test/Unit/Serializer/SerializeTest.php', |
| 44 | + 'src/Magento/Setup/Module/Di/Compiler/Config/Writer/Filesystem.php', |
| 45 | + 'Magento/Sales/Setup/SerializedDataConverter.php', |
| 46 | + 'Magento/Sales/Test/Unit/Setup/SerializedDataConverterTest.php', |
| 47 | + 'Magento/Sales/Test/Unit/Setup/SalesOrderPaymentDataConverterTest.php', |
| 48 | + 'Magento/Framework/Flag.php', |
| 49 | + 'Magento/Widget/Setup/LayoutUpdateConverter.php', |
| 50 | + 'Magento/Cms/Setup/ContentConverter.php', |
| 51 | + 'Magento/Framework/Unserialize/Test/Unit/UnserializeTest.php' |
| 52 | + ] |
| 53 | + ], |
| 54 | + 'ArrayObject' => [ |
| 55 | + 'replacement' => 'Custom class, extended from ArrayObject with overwritten serialize/unserialize methods', |
| 56 | + 'exclude' => [ |
| 57 | + 'Magento/Theme/Model/Indexer/Design/Config.php', |
| 58 | + 'Magento/Ui/Model/Manager.php', |
| 59 | + 'Magento/Ui/Test/Unit/Model/ManagerTest.php', |
| 60 | + 'Magento/Backend/Model/Menu.php', |
| 61 | + 'Magento/CatalogSearch/Model/Indexer/Fulltext.php', |
| 62 | + 'Magento/CatalogSearch/Test/Unit/Model/Indexer/FulltextTest.php', |
| 63 | + 'Magento/Catalog/Test/Unit/Model/ProductTest.php', |
| 64 | + 'Magento/CatalogSearch/Model/Indexer/Fulltext.php', |
| 65 | + 'Magento/Framework/Test/Unit/FlagTest.php', |
| 66 | + 'Magento/Framework/Validator/Test/Unit/Constraint/PropertyTest.php', |
| 67 | + 'Magento/Framework/Indexer/Test/Unit/BatchTest.php', |
| 68 | + 'Magento/Framework/View/Element/UiComponent/ArrayObjectFactory.php', |
| 69 | + 'Magento/Framework/View/Element/UiComponent/Config/Provider/Component/Definition.php', |
| 70 | + 'Magento/Framework/Indexer/Action/Base.php' |
| 71 | + ] |
| 72 | + ], |
| 73 | + 'Magento\Framework\View\Element\UiComponent\ArrayObjectFactory' => [ |
| 74 | + 'replacement' => 'Factory that creates custom class, extended from ArrayObject with overwritten ' |
| 75 | + . 'serialize/unserialize methods', |
| 76 | + 'exclude' => [ |
| 77 | + 'Magento/Ui/Model/Manager.php', |
| 78 | + 'Magento/Ui/Test/Unit/Model/ManagerTest.php', |
| 79 | + 'Magento/Framework/View/Element/UiComponent/Config/Provider/Component/Definition.php', |
| 80 | + ] |
| 81 | + ] |
| 82 | +]; |
0 commit comments