backports murph-skeleton
This commit is contained in:
parent
7376bbaeb6
commit
2b8004eb54
|
@ -11,6 +11,7 @@ use Symfony\Contracts\HttpClient\HttpClientInterface;
|
|||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||
use Symfony\Component\HttpClient\Exception\ClientException;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\HttpClient\Exception\TransportException;
|
||||
|
||||
/**
|
||||
* class SymfonyCacheManager.
|
||||
|
@ -49,6 +50,7 @@ class SymfonyCacheManager
|
|||
// Hack: used to regenerate cache of url generator
|
||||
$this->httpClient->request('POST', $pingUrl);
|
||||
} catch (ClientException $e) {
|
||||
} catch (TransportException $e) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ class TaskInitEvent extends Event
|
|||
return $this->tasks;
|
||||
}
|
||||
|
||||
public function addTask(string $task, string $label, string $section): self
|
||||
public function addTask(string $task, string $section, string $label): self
|
||||
{
|
||||
$this->tasks[$task] = [
|
||||
'label' => $label,
|
||||
|
|
|
@ -22,7 +22,7 @@ class CacheCleanTaskEventSubscriber extends TaskEventSubscriber
|
|||
|
||||
public function onInit(TaskInitEvent $event)
|
||||
{
|
||||
$event->addTask('cache:clear', 'Clean all cache', '♻️ Cache');
|
||||
$event->addTask('cache:clear', '♻️ Cache', 'Clean all cache');
|
||||
}
|
||||
|
||||
public function onRunRequest(TaskRunRequestedEvent $event)
|
||||
|
|
|
@ -42,7 +42,7 @@ class BlockExtension extends AbstractExtension
|
|||
} catch (\Exception $e) {
|
||||
}
|
||||
|
||||
$content = str_replace($match[0], $url, $content);
|
||||
$content = str_replace($block[0], $url, $content);
|
||||
}
|
||||
|
||||
return $content;
|
||||
|
|
Loading…
Reference in a new issue