Skip to content
This repository was archived by the owner on Sep 14, 2018. It is now read-only.

upgrade to Symfony 4#132

Open
alcalyn wants to merge 1 commit into
silexphp:masterfrom
alcalyn:feature/symfony-4
Open

upgrade to Symfony 4#132
alcalyn wants to merge 1 commit into
silexphp:masterfrom
alcalyn:feature/symfony-4

Conversation

@alcalyn

@alcalyn alcalyn commented Apr 24, 2018

Copy link
Copy Markdown

See issue #131

It allows to use web profiler with Symfony 4.

It introduce breaking changes while upgrading to sf4, so I couldn't keep retro-compatibility to SF < 4 for this new version.

@alcalyn alcalyn force-pushed the feature/symfony-4 branch 2 times, most recently from a3136bd to f7803d6 Compare April 25, 2018 09:51
@alcalyn

alcalyn commented Apr 25, 2018

Copy link
Copy Markdown
Author

I don't know how to fix the error in Travis TypeError: Argument 2 passed to Symfony\Component\Security\Http\Firewall\ContextListener::__construct() must be an instance of Symfony\Component\Security\Http\Firewall\iterable, array given. Is it possible to make it work for both PHP 7.1 and hhvm ?

@GregOriol

Copy link
Copy Markdown

@alcalyn Remove hhvm and add php7.2 to match Silex's test configuration (https://github.com/silexphp/Silex/blob/master/.travis.yml)

@alcalyn

alcalyn commented May 31, 2018

Copy link
Copy Markdown
Author

I agree, removed hhvm and added php 7.2.
I'm not sure if removing hhvm is ok for all of you, so let me know how to make tests green with hhvm.

@GregOriol

Copy link
Copy Markdown

@alcalyn It seems that it now fails because of some new deprecations in symfony 4.1 (just released).

@fabpot

fabpot commented Jun 1, 2018

Copy link
Copy Markdown
Member

Removing HHVM is a good idea. I've dropped support in all my projects.

@alcalyn

alcalyn commented Jun 1, 2018

Copy link
Copy Markdown
Author

Ok, good. Errors in unit tests are related to all vendors (HTTPKernel, Twig...) that still use $request->getSession() when no session has been set.

Calling "Symfony\Component\HttpFoundation\Request::getSession()" when no session has been set is deprecated since Symfony 4.1 and will throw an exception in 5.0. Use "hasSession()" instead.

@GregOriol

Copy link
Copy Markdown

@alcalyn Indeed, and I submitted a PR to symfony to fix them (symfony/symfony#27458)

@alcalyn

alcalyn commented Jun 1, 2018

Copy link
Copy Markdown
Author

Nice @GregOriol, I tried your fix and it makes tests green, so this PR is waiting for symfony/symfony#27458

@GregOriol

Copy link
Copy Markdown

By the way, why not update "symfony/phpunit-bridge" to ^4.0 too? and maybe try to remove the conflict declaration from composer.json?

@alcalyn alcalyn force-pushed the feature/symfony-4 branch from 03b6e24 to 73d3f0d Compare June 1, 2018 12:55
GregOriol added a commit to GregOriol/Silex-WebProfiler that referenced this pull request Jun 1, 2018
@alcalyn alcalyn force-pushed the feature/symfony-4 branch from 73d3f0d to 731db5a Compare June 1, 2018 12:57
@alcalyn

alcalyn commented Jun 1, 2018

Copy link
Copy Markdown
Author

Yep, done

@GregOriol

Copy link
Copy Markdown

@alcalyn Now that symfony 4.1.1 has been released, could you re-check this?

@alcalyn alcalyn force-pushed the feature/symfony-4 branch from 731db5a to d754870 Compare July 10, 2018 11:49
@alcalyn alcalyn force-pushed the feature/symfony-4 branch from b19ce1b to 25c0433 Compare July 10, 2018 12:22
@alcalyn

alcalyn commented Jul 10, 2018

Copy link
Copy Markdown
Author

Hello, I allow phpunit 6 to be installed to make simple-phpunit tests green.

It's ok for me

@shamotj

shamotj commented Jul 16, 2018

Copy link
Copy Markdown

+1 for merge. This is last package which is stopping us from using symfony 4 components.

@jlayt

jlayt commented Jul 24, 2018

Copy link
Copy Markdown

+1 for merge and release so we can reach the promised land :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants