Feature request from thaopw, posted on GitHub Oct 21, 2016
Preconditions
- Magento CE 2.1.x
Steps to reproduce
- Declare a namespace (includes a space character or newline) like value in
.xml
files tags
E.g:
<argument name="productDataProvider" xsi:type="object"> Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider </argument>
Expected result
-
Similar declare (ignore newline, space in tags value) :
<argument name="productDataProvider" xsi:type="object">Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider</argument>
And initialize a class "Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider" in the constructor
Actual result
- Magento System initialize an object have namespace like " Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider " and return an error below:
Class
Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider does not exist