symfony-bundle icon indicating copy to clipboard operation
symfony-bundle copied to clipboard

Allow Symfony 7

Open andreybolonin opened this issue 1 year ago • 13 comments

Closes https://github.com/php-translation/symfony-bundle/issues/501

andreybolonin avatar Dec 25 '23 19:12 andreybolonin

Thank you for this PR! Test failures look related, could you rebuild with the latest changes in master branch, I started using Composer v2 in #503 - hopefully it will fix most fails

bocharsky-bw avatar Dec 25 '23 21:12 bocharsky-bw

OK, I rebase with master - now seems failures are related to this PR

bocharsky-bw avatar Dec 26 '23 21:12 bocharsky-bw

Hi, how this PR looks? When wil it be done please? Thanks ;)

spiider8 avatar Jan 08 '24 07:01 spiider8

The problem is that this bundle depends on other bundles that do not have Symfony 7 support yet, e.g:

  • https://github.com/php-translation/extractor/pull/172
  • https://github.com/php-translation/symfony-storage/pull/64
  • https://github.com/php-translation/common/pull/52

So to make this bundle trully support Symfony 7 - we need to add Symfony 7 support to the bundles mentioned above first, make releases for them, and finally merge this PR if tests pass.

I tried to quickly allow Symfony 7 support in those bundles, but as you can see tests failed there. Unfortunately, I don't have time yet to fix them, if anyone wants to be a volunteer to help fixing tests in those packages - please, let me know... or just create a new PR with proper fixes. As soon as we're green - I will be happy to review / merge and move it forward.

bocharsky-bw avatar Jan 09 '24 11:01 bocharsky-bw

Hello. What is the current status? I saw that there are recent changes in the named packages, do you need more help?

byhaskell avatar Jan 30 '24 12:01 byhaskell

@byhaskell https://github.com/php-translation/extractor/pull/172#issuecomment-1916844118 currently the part where this is stuck.

rvanlaak avatar Jan 30 '24 16:01 rvanlaak

What about a dropping the extractor and using Symfony's translation:extract command?

I've haven't checked what the extractor is doing, but it sounds that those two are doing similar things.

althaus avatar Jan 31 '24 15:01 althaus

If I am not mistaken, this PR can be updated now that the other components support 7+

alcohol avatar Jun 13 '24 09:06 alcohol

I updated this PR with the latest changes in master, but seems we need more work here because some tests fail

@andreybolonin could you take a look?

bocharsky-bw avatar Jun 13 '24 11:06 bocharsky-bw

Screenshot 2024-06-18 at 10 57 08

@bocharsky-bw any ideas why? https://symfony.com/doc/current/reference/twig_reference.html#file-link

andreybolonin avatar Jun 18 '24 07:06 andreybolonin

Hm, IIRC that file_link() Twig filter comes from symfony/debug-bundle, make sure that bundle is installed and enabled for the current Sf env - probably start looking into this direction.

bocharsky-bw avatar Jun 18 '24 08:06 bocharsky-bw

Hm, IIRC that file_link() Twig filter comes from symfony/debug-bundle, make sure that bundle is installed and enabled for the current Sf env - probably start looking into this direction.

Confirmed: Symfony/Bundle/WebProfilerBundle/Profiler/CodeExtension.php#L50

The class documentation explicitly mentions that the provided functions and filters should only be used in development environments though and never in production. Is the offending template in question something one would only use in a development environment?

alcohol avatar Jun 18 '24 12:06 alcohol

Are you talking about WebUI/show.html.twig? That should be used in dev/test only I think

bocharsky-bw avatar Jun 20 '24 12:06 bocharsky-bw

Can you please resolve this issue?

webspin avatar Jul 22 '24 07:07 webspin

Is closing this topic some message that there wont be any updates to symfony 7 ? Or maybe is it already done? ;)

pawellen avatar Aug 06 '24 12:08 pawellen

@pawellen Unfortunately, I don't know the reasons behind closing this PR. Sf 7 support is still a relevant issue for this repo, see #501. Seems no active Symfony 7 PRs currently, so if there are some volunteers who would like to help with it - please, PRs are warmly welcome here!

bocharsky-bw avatar Aug 06 '24 14:08 bocharsky-bw