Skip to content

Fix/command deprecation#210

Merged
nicolasmure merged 2 commits intomasterfrom
fix/command-deprecation
Jun 6, 2019
Merged

Fix/command deprecation#210
nicolasmure merged 2 commits intomasterfrom
fix/command-deprecation

Conversation

@nicolasmure
Copy link
Copy Markdown
Contributor

@nicolasmure nicolasmure commented Feb 19, 2019

Related to #209 .
As @timgregg pointed out, the SF 4.2 have a deprecation on the ContainerAwareCommand class, and the services used in a command should be injected as dependencies.

This PR completes the work of #209 by injecting the dependency.

TODO

  • explicitly require a version of Gaufrette having the FilesystemMapInterface

timgregg and others added 2 commits June 6, 2019 11:14
After upgrading to symfony 4.2 getting this deprecation error

` 1x: The "Knp\Bundle\GaufretteBundle\Command\FilesystemKeysCommand" class extends "Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand" that is deprecated since Symfony 4.2, use {@see Command} instead.`

changing to use "Symfony\Component\Console\Command\Command" fixes this issue
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