2019-02-23 16:49:38 +01:00
# 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
2019-03-12 13:34:33 +01:00
2019-02-23 16:49:38 +01:00
parameters :
2019-03-12 13:34:33 +01:00
locale : 'en' # Set the default language to use her
2019-09-12 22:16:33 +02:00
timezone : 'Europe/Berlin'
2019-03-12 13:34:33 +01:00
partdb_title : 'Part-DB' # The title shown inside of Part-DB (e.g. in the navbar and on homepage)
2019-10-19 23:20:19 +02:00
banner : '%env(trim:string:BANNER)%' # The info text shown in the homepage, if empty config/banner.md is used
2019-03-14 19:10:11 +01:00
use_gravatar : true # Set to false, if no Gravatar images should be used for user profiles.
2019-08-02 12:17:56 +02:00
default_currency : 'EUR' # The currency that should be used
2019-10-13 17:48:18 +02:00
media_directory : 'public/media/' # The folder where uploaded attachment files are saved
2019-10-19 18:42:06 +02:00
secure_media_directory : 'uploads/' # The folder where secured attachment files are saved (must not be in public/)
2019-10-13 17:48:18 +02:00
global_theme : '' # The theme to use globally (see public/build/themes/ for choices). Set to '' for default bootstrap theme
2019-10-19 19:55:15 +02:00
# 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
2019-10-20 00:01:06 +02:00
demo_mode : '%env(bool:DEMO_MODE)%' # If set to true, all potentially dangerous things are disabled (like changing passwords of the own user)
2019-12-01 12:48:59 +01:00
sender_email : 'noreply@partdb.changeme' # The email address from which all emails are sent from
sender_name : 'Part-DB Mailer' # The name that will be used for all mails sent by Part-DB
allow_email_pw_reset : '%env(validMailDSN:MAILER_DSN)%' # Config if users are able, to reset their password by email. By default this enabled, when a mail server is configured.
2020-02-10 23:50:14 +01:00
locale_menu : [ 'en' , 'de' , 'fr' , 'ru' ] # The languages that are shown in user drop down menu
2020-01-26 13:59:30 +01:00
# If this option is activated, IP addresses are anonymized to be GPDR compliant
gpdr_compliance : true
2019-02-23 16:49:38 +01:00
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.
2019-12-31 18:12:15 +01:00
bind :
bool $demo_mode : '%demo_mode%'
2020-01-26 13:59:30 +01:00
bool $gpdr_compliance : '%gpdr_compliance%'
2019-02-23 16:49:38 +01:00
# 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' ]
2019-11-24 22:49:22 +01:00
App\EventSubscriber\MailFromListener :
tags : [ 'kernel.event_subscriber' ]
arguments :
$email : '%sender_email%'
$name : '%sender_name%'
2020-01-26 13:59:30 +01:00
App\Services\LogSystem\EventLogger :
arguments :
# By default only log events which has minimum info level (debug levels are not logged)
# 7 is lowest level (debug), 0 highest (emergency
$minimum_log_level : 6
# Event classes specified here are not saved to DB
$blacklist : [ ]
# Only the event classes specified here are saved to DB (set to []) to log all events
$whitelist : [ ]
2019-10-05 20:30:27 +02:00
Liip\ImagineBundle\Service\FilterService :
alias : 'liip_imagine.service.filter'
2019-03-20 19:11:34 +01:00
app.doctrine.elementListener :
class : App\Security\EntityListeners\ElementPermissionListener
public : false
autowire : true
tags :
- { name : "doctrine.orm.entity_listener" }
2020-02-02 21:24:29 +01:00
App\EventSubscriber\EventLoggerSubscriber :
tags :
- { name : 'doctrine.event_subscriber' }
2020-01-26 21:31:48 +01:00
App\EventSubscriber\MigrationListener :
tags :
- { name : 'doctrine.event_subscriber' }
2019-08-20 12:34:43 +02:00
tree_invalidation_listener :
class : App\EntityListeners\TreeCacheInvalidationListener
tags :
- { name : doctrine.orm.entity_listener }
2019-08-27 22:24:56 +02:00
attachment_delete_listener :
class : App\EntityListeners\AttachmentDeleteListener
tags :
- name : doctrine.orm.entity_listener
2020-02-23 19:45:06 +01:00
# Dont use JSONSerializable Interface,
serializer.normalizer.json_serializable :
class : Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer
tags :
- {name: serializer.normalizer, priority : -9000 }
2019-08-20 12:34:43 +02:00
2019-09-12 17:50:33 +02:00
App\Controller\RedirectController :
arguments :
$default_locale : '%locale%'
2019-10-03 00:45:02 +02:00
$enforce_index_php : '%env(bool:NO_URL_REWRITE_AVAILABLE)%'
2019-09-12 17:50:33 +02:00
2019-08-13 13:04:31 +02:00
App\Command\UpdateExchangeRatesCommand :
arguments :
$base_current : '%default_currency%'
2019-08-30 14:25:05 +02:00
App\Form\Type\CurrencyEntityType :
arguments :
$base_currency : '%default_currency%'
2019-09-01 14:37:53 +02:00
App\Services\PricedetailHelper :
arguments :
$base_currency : '%default_currency%'
2019-09-01 13:56:14 +02:00
App\Services\MoneyFormatter :
arguments :
$base_currency : '%default_currency%'
2019-08-13 13:04:31 +02:00
2019-10-19 17:13:13 +02:00
App\Form\AttachmentFormType :
arguments :
$allow_attachments_downloads : '%allow_attachments_downloads%'
App\Services\Attachments\AttachmentSubmitHandler :
arguments :
$allow_attachments_downloads : '%allow_attachments_downloads%'
2019-10-19 18:42:06 +02:00
$mimeTypes : '@mime_types'
2019-10-19 17:13:13 +02:00
2019-10-20 00:01:06 +02:00
App\Form\UserSettingsType :
arguments :
$demo_mode : '%demo_mode%'
2019-10-19 17:13:13 +02:00
2019-09-12 22:16:33 +02:00
App\EventSubscriber\TimezoneListener :
arguments :
$timezone : '%timezone%'
2019-12-01 12:48:59 +01:00
App\Controller\SecurityController :
arguments :
$allow_email_pw_reset : '%allow_email_pw_reset%'
2019-09-28 16:06:37 +02:00
App\Services\Attachments\AttachmentPathResolver :
arguments :
$project_dir : '%kernel.project_dir%'
$media_path : '%media_directory%'
2019-10-19 17:13:13 +02:00
$secure_path : '%secure_media_directory%'
2019-09-28 16:06:37 +02:00
$footprints_path : 'public/img/footprints'
$models_path : null
2019-10-31 22:37:54 +01:00
App\Services\Attachments\FileTypeFilterTools :
arguments :
$mimeTypes : '@mime_types'
2019-12-27 15:20:06 +01:00
App\Services\TFA\BackupCodeGenerator :
arguments :
$code_length : 8
2019-12-27 18:21:12 +01:00
$code_count : 15
2019-12-27 15:20:06 +01:00
2019-09-10 22:48:17 +02:00
App\Services\TranslationExtractor\PermissionExtractor :
tags :
- { name: 'translation.extractor', alias : 'permissionExtractor' }