From: Raphaël Gertz Date: Tue, 14 Oct 2025 15:05:30 +0000 (+0200) Subject: Cleanup X-Git-Tag: 0.0.1~4 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/489b0fba3b48891888d46c0b7f6254f985fdc45c Cleanup --- diff --git a/Resources/config/parameters.yml.dist b/Resources/config/parameters.yml.dist deleted file mode 100644 index ab4e194..0000000 --- a/Resources/config/parameters.yml.dist +++ /dev/null @@ -1,60 +0,0 @@ -# This file is a "template" of what your parameters.yml file should look like -# Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production. -# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration -parameters: - database_host: localhost - database_port: null - database_name: blog - database_user: blog - database_password: ~ - - mailer_transport: smtp - mailer_host: 127.0.0.1 - mailer_user: ~ - mailer_password: ~ - - # A secret key that's used to generate certain security-related tokens - secret: ThisTokenIsNotSoSecretChangeIt - - # Blog config - blog.locales: [ en, fr ] - blog.logo: 'bundles/rapsysblog/png/favicon.png' - blog.title: 'Dev log' - blog.welcome: 'Welcome to %blog.title%' - blog.contact_mail: 'blog@rapsys.eu' - blog.contact_name: 'Raphaël Gertz' - -# Add json dql function -doctrine: - orm: - dql: - string_functions: - Json: - Rapsys\BlogBundle\DQL\JsonFunction - -# Sension config -sensio_framework_extra: - router: - annotations: false - request: - converters: false - auto_convert: false - view: - annotations: false - cache: - annotations: false - security: - annotations: false - psr_message: - enabled: false - -# Set fallback locale -framework: - translator: - fallbacks: - - '%locale%' - -# Set twig global -twig: - globals: - blog_locales: '%blog.locales%' diff --git a/Resources/config/routing.yml b/Resources/config/routing.yml deleted file mode 100644 index 448e728..0000000 --- a/Resources/config/routing.yml +++ /dev/null @@ -1,48 +0,0 @@ -root: - path: / - defaults: { _controller: RapsysBlogBundle:Default:root } - -homepage: - path: /{_locale} - defaults: { _controller: RapsysBlogBundle:Page:index } - requirements: - _locale: '%blog.locales%' - -about: - path: /{_locale}/about - defaults: { _controller: RapsysBlogBundle:Page:about } - requirements: - _locale: '%blog.locales%' - -contact: - path: /{_locale}/contact - defaults: { _controller: RapsysBlogBundle:Page:contact } - requirements: - _locale: '%blog.locales%' - -articles: - path: /{_locale}/articles - defaults: { _controller: RapsysBlogBundle:Page:articleIndex } - requirements: - _locale: '%blog.locales%' - -articles_article: - path: /{_locale}/articles/{_article} - defaults: { _controller: RapsysBlogBundle:Page:articleRead } - requirements: - _locale: '%blog.locales%' - #_article: '\d+' - _article: '[a-z0-9-]+' - -keywords: - path: /{_locale}/keywords - defaults: { _controller: RapsysBlogBundle:Page:keywordIndex } - requirements: - _locale: '%blog.locales%' - -keywords_keyword: - path: /{_locale}/keywords/{_keyword} - defaults: { _controller: RapsysBlogBundle:Page:keywordRead } - requirements: - _locale: '%blog.locales%' - _keyword: '[a-z0-9-]+' diff --git a/Resources/config/services.yml b/Resources/config/services.yml deleted file mode 100644 index 2dcb15f..0000000 --- a/Resources/config/services.yml +++ /dev/null @@ -1,7 +0,0 @@ -services: - twig.extension.intl: - class: Twig_Extensions_Extension_Intl - tags: [ twig.extension ] - rapsys_blog.twig.base64: - class: Rapsys\BlogBundle\Twig\Base64Extension - tags: [ twig.extension ]