parameters: ~

auto_admin:
    content:
        templates:
            #            default_content_view: '@AutoAdminContent/content/view.html.twig'
            #            layout: '@AutoAdminContent/layout.html.twig'
            layout: 'base.html.twig'
        #   sub views are handle in each entity and end up here
        #            page:
        #                view: 'page/view.html.twig'

        #        static_translation:
        #             # enable debug to display all keys with or without default translation
        #            debug: true

        contents:
            #            App\Entity\Article:
            #                slug: article
            #                actions:
            #                    view:
            #                        route:
            #                            path: /actualites/{category}/{slug}
            #                            controller: 'App\Controller\ArticleController::view'
            #                        autofill_parameters:
            #                            category: category._tr.slug
            #                            slug: _tr.slug
            #                        template: 'article/view.html.twig'

            #            App\Entity\ArticleCategory:
            #                slug: article-category
            #                actions:
            #                    view:
            #                        route:
            #                            path: /actualites/{slug}
            #                            controller: 'App\Controller\ArticleCategoryController::view'
            #                        autofill_parameters:
            #                            slug: currentTranslation.slug
            #                        template: 'article-category/view.html.twig'

            App\Entity\Page:
                slug: page
                actions:
                    # for index redirect to localized indexes, if needed
                    #                    root:
                    #                        route:
                    #                            path: /
                    #                            controller: AutoAdmin\Bundle\Content\Controller\I18nRedirectController::rootRedirect

                    index:
                        route:
                            #                            path: /{_locale}
                            #                            requirements:
                            #                                _locale: '%locales_pattern%'
                            path: /
                            controller: App\Controller\PageController::index
                    #                            template: 'page/view.html.twig'
                    view:
                        route:
                            #                            path: /{_locale}/{slug}
                            #                            requirements:
                            #                                _locale: '%locales_pattern%'
                            path: /{slug}
                            controller: App\Controller\PageController::view
                        #                            template: 'page/view.html.twig'
                        autofill_parameters:
                            slug: _tr.slug

#    media:
#        media_mappings:
#            image:
#                mime_types:
#                    - 'image/jpeg'
#                    - 'image/png'
#                    - 'image/gif'
#                    - 'image/webp'
#                    - 'image/avif'
