Fatal error: Uncaught Magento\Framework\Exception\LocalizedException: Invalid Document Error in merged XML after reading /app/app/etc/di.xml Element 'preference': Duplicate key-sequence ['DateTimeInterface'] in unique identity-constraint 'uniquePreference'. Line: 26 The xml was: 21: <item name="redis" xsi:type="string">\Magento\Framework\App\Backpressure\SlidingWindow\RedisRequestLogger</item> 22: </argument> 23: </arguments> 24: </type> 25: <preference for="DateTimeInterface" type="DateTime"/> 26: <preference for="Psr\Log\LoggerInterface" type="Magento\Framework\Logger\LoggerProxy"/> 27: <preference for="Magento\Framework\Webapi\Backpressure\BackpressureRequestTypeExtractorInterface" type="Magento\Framework\Webapi\Backpressure\CompositeRequestTypeExtractor"/> 28: <preference for="Magento\Framework\App\Backpressure\SlidingWindow\RequestLoggerFactoryInterface" type="Magento\Framework\App\Backpressure\SlidingWindow\RequestLoggerFactory"/> 29: <preference for="Magento\Framework\EntityManager\EntityMetadataInterface" type="Magento\Framework\EntityManager\EntityMetadata"/> 30: <preference for="Magento\Framework\EntityManager\HydratorInterface" type="Magento\Framework\EntityManager\Hydrator"/> in /app/vendor/magento/framework/Config/Reader/Filesystem.php:186 Stack trace: #0 /app/vendor/magento/framework/Config/Reader/Filesystem.php(131): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator)) #1 /app/vendor/magento/framework/App/ObjectManagerFactory.php(279): Magento\Framework\Config\Reader\Filesystem->read('primary') #2 /app/vendor/magento/framework/App/ObjectManagerFactory.php(140): Magento\Framework\App\ObjectManagerFactory->_loadPrimaryConfig(Object(Magento\Framework\App\Filesystem\DirectoryList), Object(Magento\Framework\Filesystem\DriverPool), Object(Magento\Framework\ObjectManager\Config\Mapper\Dom), 'developer') #3 /app/vendor/magento/framework/App/Bootstrap.php(212): Magento\Framework\App\ObjectManagerFactory->create(Array) #4 /app/vendor/magento/framework/App/Bootstrap.php(127): Magento\Framework\App\Bootstrap->__construct(Object(Magento\Framework\App\ObjectManagerFactory), '/app', Array) #5 /app/pub/index.php(27): Magento\Framework\App\Bootstrap::create('/app', Array) #6 {main} Next Magento\Framework\Exception\State\InitException: Invalid Document Error in merged XML after reading /app/app/etc/di.xml Element 'preference': Duplicate key-sequence ['DateTimeInterface'] in unique identity-constraint 'uniquePreference'. Line: 26 The xml was: 21: <item name="redis" xsi:type="string">\Magento\Framework\App\Backpressure\SlidingWindow\RedisRequestLogger</item> 22: </argument> 23: </arguments> 24: </type> 25: <preference for="DateTimeInterface" type="DateTime"/> 26: <preference for="Psr\Log\LoggerInterface" type="Magento\Framework\Logger\LoggerProxy"/> 27: <preference for="Magento\Framework\Webapi\Backpressure\BackpressureRequestTypeExtractorInterface" type="Magento\Framework\Webapi\Backpressure\CompositeRequestTypeExtractor"/> 28: <preference for="Magento\Framework\App\Backpressure\SlidingWindow\RequestLoggerFactoryInterface" type="Magento\Framework\App\Backpressure\SlidingWindow\RequestLoggerFactory"/> 29: <preference for="Magento\Framework\EntityManager\EntityMetadataInterface" type="Magento\Framework\EntityManager\EntityMetadata"/> 30: <preference for="Magento\Framework\EntityManager\HydratorInterface" type="Magento\Framework\EntityManager\Hydrator"/> in /app/vendor/magento/framework/App/ObjectManagerFactory.php:281 Stack trace: #0 /app/vendor/magento/framework/App/ObjectManagerFactory.php(140): Magento\Framework\App\ObjectManagerFactory->_loadPrimaryConfig(Object(Magento\Framework\App\Filesystem\DirectoryList), Object(Magento\Framework\Filesystem\DriverPool), Object(Magento\Framework\ObjectManager\Config\Mapper\Dom), 'developer') #1 /app/vendor/magento/framework/App/Bootstrap.php(212): Magento\Framework\App\ObjectManagerFactory->create(Array) #2 /app/vendor/magento/framework/App/Bootstrap.php(127): Magento\Framework\App\Bootstrap->__construct(Object(Magento\Framework\App\ObjectManagerFactory), '/app', Array) #3 /app/pub/index.php(27): Magento\Framework\App\Bootstrap::create('/app', Array) #4 {main} thrown in /app/vendor/magento/framework/App/ObjectManagerFactory.php on line 281