Skip to content

Extend from the ResetInterface #27

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

Merged
merged 2 commits into from
Jan 17, 2019
Merged

Conversation

fionera
Copy link
Contributor

@fionera fionera commented Jan 12, 2019

This way the Container automaticly resets the returnedFile array and this hack is obsolete php-pm/php-pm-httpkernel#151

@weaverryan
Copy link
Member

This is definitely a good idea. But, it would mean that the bundle should now require symfony/contracts at version 4.2 I believe.

@fionera
Copy link
Contributor Author

fionera commented Jan 12, 2019

It already does... http-kernel requires event-dispatcher wich depends on contracts

@weaverryan
Copy link
Member

Ah. But now we have a direct dependency on it - we shouldn’t rely on it indirectly. Also, we will need to specifically require version 4.2 or higher, not just 4.0 or higher (currently, if we don’t explicitly require it in this lib, someone could get 4.1 of everything, which does not rely on contracts).

This will also make this bundle work for Symfony 4.2 only (well, at least 4.2 of the contracts library will be required).

@nicolas-grekas
Copy link
Member

Contracts is a standalone package so the bundle will still be compatible with 4.0

@weaverryan
Copy link
Member

Thank you @fionera!

@weaverryan weaverryan merged commit 2b244da into symfony:master Jan 17, 2019
weaverryan added a commit that referenced this pull request Jan 17, 2019
This PR was squashed before being merged into the master branch (closes #27).

Discussion
----------

Extend from the ResetInterface

This way the Container automaticly resets the returnedFile array and this hack is obsolete php-pm/php-pm-httpkernel#151

Commits
-------

2b244da Add Symfony Contracts Dependency
85f21a0 Extend from the ResetInterface
@fionera fionera deleted the patch-1 branch January 17, 2019 14:15
@weaverryan weaverryan mentioned this pull request Mar 1, 2019
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.

3 participants