]> Raphaël G. Git Repositories - packbundle/commitdiff
Rename pack bundle route alias
authorRaphaël Gertz <git@rapsys.eu>
Thu, 7 Mar 2024 17:01:22 +0000 (18:01 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 7 Mar 2024 17:01:22 +0000 (18:01 +0100)
Util/FacebookUtil.php

index 8e5377fa0c2a542fffb7230c9d477d5ae94d7b94..91664d1525b6b0e4e63ffccb2b0a3345408163c2 100644 (file)
@@ -122,7 +122,7 @@ class FacebookUtil {
 
                        //Return image data
                        return [
-                               'og:image' => $this->router->generate('rapsys_pack_facebook', ['mtime' => $mtime, 'path' => $pathInfo], UrlGeneratorInterface::ABSOLUTE_URL),
+                               'og:image' => $this->router->generate('rapsyspack_facebook', ['mtime' => $mtime, 'path' => $pathInfo], UrlGeneratorInterface::ABSOLUTE_URL),
                                'og:image:alt' => str_replace("\n", ' ', implode(' - ', array_keys($texts))),
                                'og:image:height' => $height,
                                'og:image:width' => $width
@@ -348,7 +348,7 @@ class FacebookUtil {
 
                //Return image data
                return [
-                       'og:image' => $this->router->generate('rapsys_pack_facebook', ['mtime' => stat($path)['mtime'], 'path' => $pathInfo], UrlGeneratorInterface::ABSOLUTE_URL),
+                       'og:image' => $this->router->generate('rapsyspack_facebook', ['mtime' => stat($path)['mtime'], 'path' => $pathInfo], UrlGeneratorInterface::ABSOLUTE_URL),
                        'og:image:alt' => str_replace("\n", ' ', implode(' - ', array_keys($texts))),
                        'og:image:height' => $height,
                        'og:image:width' => $width