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

upgrade to Symfony 4 #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

alcalyn
Copy link

@alcalyn alcalyn commented Apr 24, 2018

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
Copy link
Author

alcalyn commented Apr 25, 2018

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

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

@alcalyn
Copy link
Author

alcalyn commented May 31, 2018

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

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

@fabpot
Copy link
Member

fabpot commented Jun 1, 2018

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

@alcalyn
Copy link
Author

alcalyn commented Jun 1, 2018

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

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

@alcalyn
Copy link
Author

alcalyn commented Jun 1, 2018

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

@GregOriol
Copy link

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

GregOriol added a commit to GregOriol/Silex-WebProfiler that referenced this pull request Jun 1, 2018
@alcalyn
Copy link
Author

alcalyn commented Jun 1, 2018

Yep, done

@GregOriol
Copy link

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

@alcalyn
Copy link
Author

alcalyn commented Jul 10, 2018

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

It's ok for me

@shamotj
Copy link

shamotj commented Jul 16, 2018

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

@jlayt
Copy link

jlayt commented Jul 24, 2018

+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.

None yet

5 participants