Shopware 6.3: Don’t share caches between deployments

We had a problem today and no clue, where it came from. There was no way to reproduce it locally. PHP Fatal error: Cannot declare interface Doctrine\DBAL\Driver\Connection, because the name is already in use in /var/www/ingo-maurer2.stage.winkelwagen.de/releases/20211122094005/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Connection.php on line 13 This happens, because we wanted to share the caching directory between deployments. Don’t do that. Maybe […]

How to: Shopware image urls

How is a Shopware image url generated, let’s dive into it and start really early so everyone can follow. MediaEntity::getUrl into the Template This is part of vendor/shopware/storefront/Resources/views/storefront/utilities/thumbnail.html.twig I’ll just dig down the methods and will sum everything up in the end. \Shopware\Storefront\Framework\Twig\Extension\UrlEncodingTwigFilter::encodeMediaUrl So far so good. So the big question is, where is \Shopware\Core\Content\Media\MediaEntity::getUrl […]