Skip to content

Symfony 4.0 patch - #309

Open
RickySu wants to merge 3 commits into
schmittjoh:masterfrom
RickySu:4.0-patch
Open

Symfony 4.0 patch#309
RickySu wants to merge 3 commits into
schmittjoh:masterfrom
RickySu:4.0-patch

Conversation

@RickySu

@RickySu RickySu commented May 28, 2018

Copy link
Copy Markdown

Symfony 4.0 has many breaking changes.

  • The DefinitionDecorator class has been removed. Use the ChildDefinition class instead.
  • Definitions and aliases are now private by default in 4.0. You should either use service injection or explicitly define your services as public if you really need to inject the container.

DependencyInjection

Comment thread composer.json
"symfony/validator": "~4.0",
"symfony/form": "~4.0",
"symfony/class-loader": "~4.0",
"symfony/yaml": "~4.0",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is quite restrictive, we should keep supporting 3.x for now imo. Could you instead use 4.0 classes only if they're available?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Maybe you can create a new branch for 4.x, and mark release version as 2.0.x.
Supporting 3.x and 4.x both needs some workarounds.

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.

2 participants