Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony 3.x compatibility #90

Closed
wants to merge 10 commits into from
Closed

Symfony 3.x compatibility #90

wants to merge 10 commits into from

Conversation

emodric
Copy link
Collaborator

@emodric emodric commented Apr 13, 2017

Removes usage of Symfony *.class parameters for compatibility with Symfony 3.x.

Also contains a followup to #88 by @wizhippo, due to ezsystems/ezpublish-kernel#1910

Removes usage of request service.

Removes usage of ContainerAware abstract class.

Replaced deprecated CSRF token provider with token manager

Removed depreacted usage of $absolute argument in router

More fixes probably incoming :)

@emodric
Copy link
Collaborator Author

emodric commented Apr 18, 2017

@andrerom Ready for merge and tag?

Together with ezsystems/ezpublish-kernel#1957, everything appears to be working fine.

The tag could be 1.2.0 I suppose.

@andrerom
Copy link
Contributor

andrerom commented Apr 18, 2017

@lolautruche review ping :)

@@ -87,7 +87,7 @@ public function init()
$this->kernelFactory->setBuildEventsEnabled(false);

/** @var $request \Symfony\Component\HttpFoundation\ParameterBag */
$request = $this->container->get('request')->request;
$request = $this->container->get('request_stack')->getCurrentRequest()->request;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't the request be injected as an argument?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure can, but then it's a breaking change :)

@emodric
Copy link
Collaborator Author

emodric commented Apr 20, 2017

@andrerom @lolautruche Some more commits added for compatibility with Sf 3.x, please review :)

@lolautruche
Copy link
Contributor

Still +1

@emodric
Copy link
Collaborator Author

emodric commented Apr 20, 2017

Thanks! 👍

@emodric
Copy link
Collaborator Author

emodric commented Apr 20, 2017

GitHub stalled for a moment, PR is merged in 3bdb710, but it didn't mark as merged, so closing.

@emodric emodric closed this Apr 20, 2017
@emodric emodric deleted the sf3_compat branch April 20, 2017 18:00
ezpublishlegacy pushed a commit to ezpublishlegacy/LegacyBridge that referenced this pull request May 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants