From 07eee2f151dd7e9d641156087d2ab0e943134e12 Mon Sep 17 00:00:00 2001 From: Jason Marshall Date: Mon, 4 Sep 2023 12:08:54 -0400 Subject: [PATCH 1/2] fixings for images in the sitemap --- composer.json | 2 +- src/EventSubscriber/SitemapSubscriber.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a5ee858..f052806 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "selenesoftware/cms-bundle", "type": "symfony-bundle", - "version": "0.0.7", + "version": "0.0.8", "description": "CMS platform for Symfony", "homepage": "https://github.com/SeleneSoftware/seleneCMSBundle", "license": "MIT", diff --git a/src/EventSubscriber/SitemapSubscriber.php b/src/EventSubscriber/SitemapSubscriber.php index a2ecfb8..d01a598 100644 --- a/src/EventSubscriber/SitemapSubscriber.php +++ b/src/EventSubscriber/SitemapSubscriber.php @@ -61,7 +61,7 @@ public function registerImageUrls(UrlContainerInterface $urls): void $decoratedUrl = new GoogleImageUrlDecorator($url); foreach ($images as $i) { - $decoratedUrl->addImage(new GoogleImage($i->getImageFile())); + $decoratedUrl->addImage(new GoogleImage($url.$i->getImageFile())); } $urls->addUrl($decoratedUrl, 'images'); From aaac12ba26cd9fd5f2ff358d3a1874e15c0616fd Mon Sep 17 00:00:00 2001 From: Jason Marshall Date: Mon, 4 Sep 2023 12:10:41 -0400 Subject: [PATCH 2/2] registration bug - needed name field --- src/Form/RegistrationFormType.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Form/RegistrationFormType.php b/src/Form/RegistrationFormType.php index a1dac98..065d472 100644 --- a/src/Form/RegistrationFormType.php +++ b/src/Form/RegistrationFormType.php @@ -18,6 +18,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void { $builder ->add('email') + ->add('name') ->add('agreeTerms', CheckboxType::class, [ 'mapped' => false, 'constraints' => [