Closed GeraudBourdin closed 11 months ago
ci is failing
Can you change
isRequired
to->defaultValue('host')
in the Config too ?
done
Can you change
isRequired
to->defaultValue('host')
in the Config too ?done
Thanks.
To me, code is ready. But now we need to update the doc.
In https://github.com/sonata-project/SonataPageBundle/blob/c0b2c445d423b8880ca53be8ce20442a6d29c2e8/docs/reference/advanced_configuration.rst#L29
the part multisite: ~ # Required
need to be removed (and maybe in some other files).
This page need to be update too https://github.com/sonata-project/SonataPageBundle/blob/c0b2c445d423b8880ca53be8ce20442a6d29c2e8/docs/reference/multisite.rst#L2
Can you change
isRequired
to->defaultValue('host')
in the Config too ?done
Thanks.
To me, code is ready. But now we need to update the doc.
In
the part
multisite: ~ # Required
need to be removed (and maybe in some other files). This page need to be update too
Doc updated. Hope that's ok.
multisite: string,
need to be changed in
multisite?: string,
and Ci need to be fixed https://github.com/sonata-project/SonataPageBundle/actions/runs/7003266717/job/19048641209?pr=1727
Thanks for your time and your work.
I'll wait one more day if someone has something to say and I'll merge it ^^
Thanks for your time and your work.
I'll wait one more day if someone has something to say and I'll merge it ^^
should be good confirm that, it is working ;)
For the deprecation in the tests, just add
* @group legacy * * NEXT_MAJOR: Remove this class
at the top of the RequestFactoryTest class
@GeraudBourdin ☝🏼
ok i missed one line between annotation and NEXT_major.
ok i missed one line between annotation and NEXT_major.
/**
* @group legacy
*
* NEXT_MAJOR: Remove this class
was for the RequestFactoryTest and not the runtime one ;)
ok i missed one line between annotation and NEXT_major.
you are also missing this comment 😄
https://github.com/sonata-project/SonataPageBundle/pull/1727#pullrequestreview-1754787850
ok i missed one line between annotation and NEXT_major.
/** * @group legacy * * NEXT_MAJOR: Remove this class
was for the RequestFactoryTest and not the runtime one ;)
I guess we need to do something else to psalm didn't complain about deprecated method. Do you have any idea what should we do in this case @VincentLanglet ?
Looks good for me 💪
Thank you @GeraudBourdin ,it is a really nice feature ♥️
Good job 👏👏
Hi everyone,
How can I use the multisite: host_with_path
before the next release ?
For now if i tried to use this option I got the following error:
You must change the main Request object in the front controller (app.php) in order to use the `host_with_path` strategy
I guess there is some workaround to do in the public/index.php
?
Thanks for the help
I just made a new release
@VincentLanglet, perfect thank you very much ! Let's use this new feature :+1:
I installed this but now I cannot access web_profiler in dev anymore. Anyone experiencing the same? going to _profiler/{hash} url is giving me An exception has been thrown during the rendering of a template ("You must change the main Request object in the front controller (app.php) in order to use the
host_with_path_by_localestrategy").
I installed this but now I cannot access web_profiler in dev anymore. Anyone experiencing the same? going to _profiler/{hash} url is giving me
An exception has been thrown during the rendering of a template ("You must change the main Request object in the front controller (app.php) in order to use the
host_with_path_by_localestrategy").
did you add the runtime?
@haivala
did you do this: https://docs.sonata-project.org/projects/SonataPageBundle/en/4.x/reference/multisite/#host-and-path-strategy ?
@haivala
did you do this: https://docs.sonata-project.org/projects/SonataPageBundle/en/4.x/reference/multisite/#host-and-path-strategy ?
in theory you didn't add the runtime: https://github.com/sonata-project/SonataPageBundle/blob/b009becd106bab26d572bf81141b7d398d3fa81b/src/Site/HostPathByLocaleSiteSelector.php#L29 and run composer dump-autoload
.
Note: I guess we could update this message as well :D
@haivala did you do this: docs.sonata-project.org/projects/SonataPageBundle/en/4.x/reference/multisite/#host-and-path-strategy ?
in theory you didn't add the runtime:
and run
composer dump-autoload
. Note: I guess we could update this message as well :D
PR welcomed for the message if it's the reason of the issue ;)
@haivala did you do this: docs.sonata-project.org/projects/SonataPageBundle/en/4.x/reference/multisite/#host-and-path-strategy ?
in theory you didn't add the runtime: https://github.com/sonata-project/SonataPageBundle/blob/b009becd106bab26d572bf81141b7d398d3fa81b/src/Site/HostPathByLocaleSiteSelector.php#L29
and run
composer dump-autoload
. Note: I guess we could update this message as well :DPR welcomed for the message if it's the reason of the issue ;)
https://github.com/sonata-project/SonataPageBundle/pull/1737
Yes. I did. Runtime was added automatically with the pagebundle update. Everything else is working as before. Just cannot access the web profiler anymore.
Feels like ignore_route_patterns
config option is not working anymore.
Feels like ignore_route_patterns config option is not working anymore.
Please open an issue with
Symfony runtime for SonataPage
Add a SonataPage runtime to avoid custom configuration in the public/index.php
use the configuration above for testing this.
composer require symfony/runtime
public/index.php :
composer.json :
multisite is not manatory, by default host_with_path_by_locale is selected
Needs to refresh the autoload file:
composer dump-autoload
Documentation used : https://symfony.com/doc/current/components/runtime.html
Closes #1604
Changelog