From: Raphaƫl Gertz Date: Thu, 31 Oct 2024 06:45:44 +0000 (+0100) Subject: Rename Resources/config to config X-Git-Tag: 0.0.5~5 X-Git-Url: https://git.rapsys.eu/treebundle/commitdiff_plain/85da4296f5f945c4db6d552048ed7423eadb6f02?ds=sidebyside Rename Resources/config to config --- diff --git a/Resources/config/packages/rapsystree.yaml b/Resources/config/packages/rapsystree.yaml deleted file mode 100644 index c283250..0000000 --- a/Resources/config/packages/rapsystree.yaml +++ /dev/null @@ -1,128 +0,0 @@ -# Parameters configuration -parameters: - -# RapsysTree configuration -rapsystree: - contact: - address: 'veranda@rapsys.eu' - name: 'Rapsys Photo' - languages: - en_gb: 'English' - fr_fr: 'French' - locale: 'fr_fr' - locales: [ 'fr_fr', 'en_gb' ] - logo: - alt: 'Rapsys photo''s logo' - title: 'Rapsys Photo' - roots: - Dcim: '/var/www/dcim' - Doc: '/var/www/doc' - Photo: '/var/www/photo' - Tango: '/var/www/tango' - Video: '/var/www/video' - -# Security configuration -security: - # Set firewall - firewalls: - # Disables authentication for assets and the profiler, adapt it according to your needs - dev: - pattern: '^/(_(profiler|wdt)|css|images|js)/' - security: false - - # Mail firewall - main: - # Allow anonymous access - #anonymous: ~ - #lazy: true - - # Activate database provider - #XXX: comment this key in config/security.yaml to prevent users_in_memory induced failures - provider: 'database' - - # Activate user checker - user_checker: 'security.user_checker' - - #XXX: https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate - #http_basic: ~ - - # Set form login - #XXX: https://symfony.com/doc/current/security/form_login_setup.html - #TODO: https://symfony.com/doc/current/security/guard_authentication.html - form_login: - # Redirect to referer if different from login route - use_referer: true - # Login path - login_path: 'rapsysuser_login' - # Check path - check_path: 'rapsysuser_login' - # Username parameter - username_parameter: 'login[mail]' - # Password parameter - password_parameter: 'login[password]' - # Enable login csrf protection - enable_csrf: false - # Csrf parameter - csrf_parameter: 'login[_token]' - # Csrf id - csrf_token_id: 'login' - - # Set logout route - logout: - # Logout route - path: 'rapsysuser_logout' - # Logout default target - target: 'rapsystree' - - # Set custom access denied handler - #access_denied_handler: Rapsys\BlogBundle\Handler\AccessDeniedHandler - - # Remember me - #XXX: see https://symfony.com/doc/current/security/remember_me.html - remember_me: - # Use APP_SECRET - secret: '%kernel.secret%' - # Always remember me - always_remember_me: true - - # Set providers - providers: - database: - entity: - class: 'Rapsys\TreeBundle\Entity\User' - property: 'mail' - - # Set role hierarchy - role_hierarchy: - ROLE_USER: [ 'ROLE_GUEST' ] - ROLE_ADMIN: [ 'ROLE_GUEST', 'ROLE_USER' ] - -# Services configuration -services: - # Register tree controller - Rapsys\TreeBundle\Controller\TreeController: - arguments: [ '@service_container', '@router', '@request_stack', '@translator', '@twig' ] - tags: [ 'controller.service_arguments' ] - -# Twig Configuration -twig: - # Enforce debug - #auto_reload: ~ - debug: '%kernel.debug%' - #strict_variables: '%kernel.debug%' - - # Disable cache - # XXX: enable forced regeneration of css and js at each page load - cache: false - - # Fix form layout for css - # XXX: @RapsysTree is a shortcut to vendor/rapsys/treebundle/Resources/views directory here - #form_theme: [ '@RapsysTree/form/form_div_layout.html.twig' ] - - # Set twig paths - paths: - # Required by email.image(site_logo) directive - # XXX: Allow twig to resolve @RapsysTree/png/logo.png in vendor/rapsys/treebundle/Resources/public/png/logo.png - '%kernel.project_dir%/vendor/rapsys/treebundle/Resources/public': 'RapsysTree' - # Override default exception controller - #exception_controller: Rapsys\TreeBundle\Controller\ErrorController::preview diff --git a/Resources/config/routes/rapsystree.yaml b/Resources/config/routes/rapsystree.yaml deleted file mode 100644 index 69e2882..0000000 --- a/Resources/config/routes/rapsystree.yaml +++ /dev/null @@ -1,21 +0,0 @@ -# Routes configuration -rapsystree: - path: - en_gb: '/en' - fr_fr: '/' - controller: Rapsys\TreeBundle\Controller\TreeController::index - methods: GET - -rapsystree_directory: - path: - en_gb: '/en/directory/{path<.+>?}' - fr_fr: '/chemin/{path<.+>?}' - controller: Rapsys\TreeBundle\Controller\TreeController::directory - methods: GET - -rapsystree_document: - path: - en_gb: '/en/document/{file<.+>?}' - fr_fr: '/document/{file<.+>?}' - controller: Rapsys\TreeBundle\Controller\TreeController::document - methods: GET