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

Add Compatibility for Symfony 4 #34

Merged
merged 4 commits into from
Jul 1, 2019

Conversation

dFayet
Copy link
Contributor

@dFayet dFayet commented Jan 5, 2019

This PR adds Compatibility for Symfony 4 and should fix issues #32 and #33

I'm not sure if this is the best solution, tell me if you have an other idea.
If you are ok with this solution I will update the install doc.

On an other note on sonata-project/admin-bundle 3.40 they have removed the inlined js used in the layout.html.twig, and replaced it with a meta attribute. This make the bundle not working with version > 3.40, do you want us to force to recent version, and update the layout.html.twig? And if yes, should I do it in this PR or in an other?

@dunglas
Copy link
Member

dunglas commented Jan 5, 2019

Great, thanks. You can force to upgrade to admin-bundle 3.40+, in the same PR.

@dFayet
Copy link
Contributor Author

dFayet commented Jan 5, 2019

Here you go, and doc updated as well.

Edit:I updated the doc to use FOSCkeditor in place of IvoryCkeditor as ivory is no more actively developed

@memboc
Copy link

memboc commented Jan 15, 2019

@dFayet please see also this comment #32 (comment)

@dFayet
Copy link
Contributor Author

dFayet commented Jan 15, 2019

Hi @memboc this PR fixes your comment.

Using the parameter sonata.media.admin.media.controller allow us to override the sonata-media MediaAdminController, and so we do not need to rewrite the routes manually.

The others points are also corrected.

@dFayet
Copy link
Contributor Author

dFayet commented May 16, 2019

@dunglas Is there anything I can do to make this PR mergeable?

@sylvainhenry
Copy link

sylvainhenry commented Jul 1, 2019

Could someone merge this PR, I need theses changes to upgrade my SF4 project ?

@dunglas dunglas merged commit eed6902 into coopTilleuls:master Jul 1, 2019
@dunglas
Copy link
Member

dunglas commented Jul 1, 2019

Thanks @dFayet

@dFayet dFayet deleted the compat-symfony-4 branch July 1, 2019 12:27
@dFayet dFayet restored the compat-symfony-4 branch July 1, 2019 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants