Closed ksom closed 8 years ago
Assigning you @core23 , I think you're the best person to handle this.
Sorry, I didn't use the API functionality
@core23 Yes you didn't use it but you removed the use
statement and the annotation is already in use in the controller.
Have you tried to readd these imports? Can you provide a PR?
I'm doing a PR.
Environment
Mac OS X 10.11.5
Sonata packages
Symfony packages
FOS Rest Package
Nelmio Api package
PHP version
Subject
Hi,
An error is thrown during
composer install
caused by the@ApiDoc
annotation onSonata\MediaBundle\Controller\Api\GalleryController
's actions although it was notuse
d. It's also the case for@QueryParam
.I found that
@QueryParam
and@ApiDoc
wereuse
d in the past but has been removed by "Support for FOSRestBundle" (committed by @core23). I wanted to open a PR to fix that but I don't know whether it was intended to remove them or not. The options would be to add theuse
s back or remove the annotations.Steps to reproduce
Run
composer install
with sonata-media 3.x-dev last version.Expected results
Finishing
composer install
normally.Actual results