mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 17:55:03 +02:00
109 lines
No EOL
4.5 KiB
YAML
109 lines
No EOL
4.5 KiB
YAML
# This file is the entry point to configure your own services.
|
|
# Files in the packages/ subdirectory configure your dependencies.
|
|
|
|
# Put parameters here that don't need to change on each machine where the app is deployed
|
|
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
|
|
|
parameters:
|
|
locale: 'en' # Set the default language to use her
|
|
timezone: 'Europe/Berlin'
|
|
partdb_title: 'Part-DB' # The title shown inside of Part-DB (e.g. in the navbar and on homepage)
|
|
banner: '%env(trim:string:BANNER)%' # The info text shown in the homepage, if empty config/banner.md is used
|
|
use_gravatar: true # Set to false, if no Gravatar images should be used for user profiles.
|
|
default_currency: 'EUR' # The currency that should be used
|
|
media_directory: 'public/media/' # The folder where uploaded attachment files are saved
|
|
secure_media_directory: 'uploads/' # The folder where secured attachment files are saved (must not be in public/)
|
|
db_version_fallback: '5.6' # Be sure to override this, in your .env with your real DB version
|
|
global_theme: '' # The theme to use globally (see public/build/themes/ for choices). Set to '' for default bootstrap theme
|
|
# Allow users to download attachments to server. Warning: This can be dangerous, because via that feature attackers maybe can access ressources on your intranet!
|
|
allow_attachments_downloads: false
|
|
demo_mode: '%env(bool:DEMO_MODE)%' # If set to true, all potentially dangerous things are disabled (like changing passwords of the own user)
|
|
|
|
services:
|
|
# default configuration for services in *this* file
|
|
_defaults:
|
|
autowire: true # Automatically injects dependencies in your services.
|
|
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
|
|
|
# makes classes in src/ available to be used as services
|
|
# this creates a service per class whose id is the fully-qualified class name
|
|
App\:
|
|
resource: '../src/*'
|
|
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
|
|
|
|
# controllers are imported separately to make sure services can be injected
|
|
# as action arguments even if you don't extend any base controller class
|
|
App\Controller\:
|
|
resource: '../src/Controller'
|
|
tags: ['controller.service_arguments']
|
|
|
|
Liip\ImagineBundle\Service\FilterService:
|
|
alias: 'liip_imagine.service.filter'
|
|
|
|
app.doctrine.elementListener:
|
|
class: App\Security\EntityListeners\ElementPermissionListener
|
|
public: false
|
|
autowire: true
|
|
tags:
|
|
- { name: "doctrine.orm.entity_listener" }
|
|
|
|
tree_invalidation_listener:
|
|
class: App\EntityListeners\TreeCacheInvalidationListener
|
|
tags:
|
|
- { name: doctrine.orm.entity_listener }
|
|
|
|
attachment_delete_listener:
|
|
class: App\EntityListeners\AttachmentDeleteListener
|
|
tags:
|
|
- name: doctrine.orm.entity_listener
|
|
|
|
|
|
App\Controller\RedirectController:
|
|
arguments:
|
|
$default_locale: '%locale%'
|
|
$enforce_index_php: '%env(bool:NO_URL_REWRITE_AVAILABLE)%'
|
|
|
|
App\Command\UpdateExchangeRatesCommand:
|
|
arguments:
|
|
$base_current: '%default_currency%'
|
|
|
|
App\Form\Type\CurrencyEntityType:
|
|
arguments:
|
|
$base_currency: '%default_currency%'
|
|
|
|
App\Services\PricedetailHelper:
|
|
arguments:
|
|
$base_currency: '%default_currency%'
|
|
|
|
App\Services\MoneyFormatter:
|
|
arguments:
|
|
$base_currency: '%default_currency%'
|
|
|
|
App\Form\AttachmentFormType:
|
|
arguments:
|
|
$allow_attachments_downloads: '%allow_attachments_downloads%'
|
|
|
|
App\Services\Attachments\AttachmentSubmitHandler:
|
|
arguments:
|
|
$allow_attachments_downloads: '%allow_attachments_downloads%'
|
|
$mimeTypes: '@mime_types'
|
|
|
|
App\Form\UserSettingsType:
|
|
arguments:
|
|
$demo_mode: '%demo_mode%'
|
|
|
|
App\EventSubscriber\TimezoneListener:
|
|
arguments:
|
|
$timezone: '%timezone%'
|
|
|
|
App\Services\Attachments\AttachmentPathResolver:
|
|
arguments:
|
|
$project_dir: '%kernel.project_dir%'
|
|
$media_path: '%media_directory%'
|
|
$secure_path: '%secure_media_directory%'
|
|
$footprints_path: 'public/img/footprints'
|
|
$models_path: null
|
|
|
|
App\Services\TranslationExtractor\PermissionExtractor:
|
|
tags:
|
|
- { name: 'translation.extractor', alias: 'permissionExtractor'} |