feat: integrate with flysystem for xml data

This commit is contained in:
Björn Fromme
2025-03-28 09:20:46 +01:00
parent 42b7c2b546
commit a92832f069
11 changed files with 601 additions and 21 deletions
+1
View File
@@ -20,4 +20,5 @@ return [
Nelmio\SecurityBundle\NelmioSecurityBundle::class => ['all' => true],
Symfony\UX\TwigComponent\TwigComponentBundle::class => ['all' => true],
Flagception\Bundle\FlagceptionBundle\FlagceptionBundle::class => ['all' => true],
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
];
+17
View File
@@ -0,0 +1,17 @@
# Read the documentation at https://github.com/thephpleague/flysystem-bundle/blob/master/docs/1-getting-started.md
flysystem:
storages:
xml_export.storage:
adapter: 'local'
options:
directory: '%env(resolve:XML_EXPORT_PATH)%'
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
@@ -34,6 +34,8 @@ services:
$tempDir: '%kernel.project_dir%/temp'
$logger: '@monolog.logger.myep'
$destinations: '%destinations%'
$xmlExport: '@xml_export.storage'
$xmlDump: '@xml_dump.storage'
App\:
resource: '../src/'
@@ -53,7 +55,6 @@ services:
App\Command\BpnImportCommand:
arguments:
$connection: '@doctrine.dbal.default_connection'
$xmlFilesPath: '%kernel.project_dir%/xmlexport'
App\Command\GenerateThumbnailsCommand:
arguments:
@@ -69,7 +70,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\BusProNet\ResponseParser:
arguments: