diff --git a/core/Cache/SymfonyCacheManager.php b/core/Cache/SymfonyCacheManager.php index 4857aa5..5504be8 100644 --- a/core/Cache/SymfonyCacheManager.php +++ b/core/Cache/SymfonyCacheManager.php @@ -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) { } } diff --git a/core/Event/Task/TaskInitEvent.php b/core/Event/Task/TaskInitEvent.php index ce9a45f..d436195 100644 --- a/core/Event/Task/TaskInitEvent.php +++ b/core/Event/Task/TaskInitEvent.php @@ -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, diff --git a/core/EventSuscriber/Task/CacheCleanTaskEventSubscriber.php b/core/EventSuscriber/Task/CacheCleanTaskEventSubscriber.php index d682d48..a0b5a01 100644 --- a/core/EventSuscriber/Task/CacheCleanTaskEventSubscriber.php +++ b/core/EventSuscriber/Task/CacheCleanTaskEventSubscriber.php @@ -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) diff --git a/core/Twig/Extension/BlockExtension.php b/core/Twig/Extension/BlockExtension.php index bcbce57..7cf7daa 100644 --- a/core/Twig/Extension/BlockExtension.php +++ b/core/Twig/Extension/BlockExtension.php @@ -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;