feat: integrate with flysystem for xml data

This commit is contained in:
Björn Fromme
2025-03-26 16:07:37 +01:00
parent 036734eadf
commit e4e03a848b
12 changed files with 617 additions and 24 deletions
+1
View File
@@ -14,4 +14,5 @@ return [
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
];
+20
View File
@@ -0,0 +1,20 @@
flysystem:
storages:
default.storage:
adapter: 'local'
options:
directory: '%kernel.project_dir%/var/storage/default'
xml_export.storage:
adapter: 'local'
options:
directory: '%kernel.project_dir%/var/xmlexport'
xml_dump.storage:
adapter: 'local'
options:
directory: '%kernel.project_dir%/var/bpn'
# adapter: 'sftp'
# options:
# host: '%env(SFTP_XML_EXPORT_HOST)%'
# port: '%env(int:SFTP_XML_EXPORT_PORT)%'
# username: '%env(SFTP_XML_EXPORT_USER)%'
# password: '%env(SFTP_XML_EXPORT_PASSWORD)%'
+2 -2
View File
@@ -12,7 +12,8 @@ services:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
bind:
$xmlPath: '%kernel.project_dir%/var/xmlexport'
$xmlExport: '@xml_export.storage'
$xmlDump: '@xml_dump.storage'
$travelInfoBaseUrl: '%env(APP_TRAVEL_INFO_BASE_URL)%'
$logger: '@monolog.logger.core'
@@ -38,7 +39,6 @@ services:
bpn_api_ip: '%env(APP_BPN_IP)%'
bpn_api_port: '%env(APP_BPN_PORT)%'
debug: '%env(bool:APP_BPN_DEBUG)%'
target_folder_dumps: '%kernel.project_dir%/var/bpn'
App\Twig\AppRuntime:
arguments: