add use and custom annotation

0 votes
asked Dec 28, 2017 in How To & Manuals by abys (220 points)

Please can you help me if a solution exist.
I need to add custom annotation when export entities

In ApiPlatflorm Bundle i need this annotation: @Apiplatform()

And use statment

use ApiPlatform\Core\Annotation\ApiResource;

thanks a lot

1 Answer

0 votes
answered Dec 28, 2017 by ludek.vodicka Skipper developer (140,450 points)
selected Dec 29, 2017 by abys
 
Best answer

By default, skipper can export only @ORM annotations. It's possible to write the extension which exports also other annotations (for example already implemented @Gedmo) but it's not such easy.

You can check gedmo configuration files to see how is it implemented.

commented Dec 28, 2017 by ludek.vodicka Skipper developer (140,450 points)

You can also check https://help.skipper18.com/expert-usage/customization/configuration-files/ help section where are described mechanisms used to export data from Skipper model files

asked Dec 29, 2017 in How To & Manuals by abys (220 points) Write extension
...