-
I have this exemple command: <?php
namespace App\Command;
use Liip\ImagineBundle\Imagine\Cache\CacheManager;
class TestCommand extends Command
{
public function __construct(
protected readonly CacheManager $imagineCacheManager,
) {
parent::__construct();
}
// Création d'une colonne export dans le devis
protected function execute(InputInterface $input, OutputInterface $output): int
{
$logo = $this->imagineCacheManager->getBrowserPath('path/logo.png', 'logo_50x50');
}
} The result is: I need to change localhost to my host. You will say, default_uri is the solution: framework:
router:
default_uri: 'https://myurl.com' But my host depends of context. I have multiples urls (https://myurl1.com, https://myurl2.com, etc) in database. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
this is not a question about the LiipImagineBundle but a general symfony question. you can either update the router context:
or string-replace |
Beta Was this translation helpful? Give feedback.
Sorry, I copied mindlessly. The code:
And work with:
$this