devigner / kunstmaan-api-bundle
Kunstmaan API Layer
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1.3
- ext-ctype: *
- ext-iconv: *
- jms/serializer-bundle: ^3.3
- kunstmaan/bundles-cms: *
- symfony/http-kernel: *
- symfony/orm-pack: *
- zircote/swagger-php: ^3.0
Requires (Dev)
- phpstan/phpstan: ^0.11.16
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2025-03-26 22:22:41 UTC
README
See example/ for an example implementation
Api layer for https://github.com/Kunstmaan/KunstmaanBundlesCMS
composer require devigner/kunstmaan-api-bundle
How to
Page
Every Entity that implements Kunstmaan\NodeBundle\Entity\PageInterface
that needs API exposure needs to:
- Implement
Devigner\KunstmaanApiBundle\Entity\PageModelInterface
. - Have a model based upon
Devigner\KunstmaanApiBundle\Model\PageEntityInterface
.
Overview Page
If an overview page is needed (eg Newspage) you need to implement:
Devigner\KunstmaanApiBundle\Entity\EntityInjectionInterface
PagePart
Every Entity that implements Kunstmaan\PagePartBundle\Helper\PagePartInterface
that needs API exposure needs to:
- Implement
Devigner\KunstmaanApiBundle\Entity\PagePartsModelInterface
. - Have a model based upon
Devigner\KunstmaanApiBundle\Model\PagePartsEntityInterface
.
Service
Devigner\KunstmaanApiBundle\EventListener\SlugEventListener:
arguments:
- '%kunstmaan_menu.menus%'