Skip to content

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Oct 26, 2020

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tickets n/a
License MIT
Doc PR n/a

NelmioApiDoc v2 and FOSUserBundle aren't maintained anymore. They prevent installing the latest version of some Symfony component. This PR removes theses packages from composer.json (the integration with these legacy tools will not be tested in the CI either).

@dunglas dunglas mentioned this pull request Oct 26, 2020
@dunglas dunglas force-pushed the fix/deprecations branch 2 times, most recently from f3a9103 to 84190e4 Compare October 27, 2020 08:58
@dunglas dunglas force-pushed the fix/deprecations branch 4 times, most recently from 49bedaf to e03df00 Compare October 29, 2020 23:01
try {
require_once $sourceFile;
} catch (\Throwable $t) {
// invalid PHP file (example: missing parent class)
Copy link
Member

Choose a reason for hiding this comment

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

should'nt we log at least so that the user knows there's an issue in this class?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's usually not an issue but an optional dependency not installed or something like that. If the class is used elsewhere, PHP will throw an error anyway.

@dunglas dunglas marked this pull request as ready for review November 5, 2020 13:48
@dunglas dunglas merged commit bfca0eb into api-platform:2.5 Nov 5, 2020
@dunglas dunglas deleted the fix/deprecations branch November 5, 2020 13:49
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