feat: integrate with flysystem for xml data
This commit is contained in:
@@ -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],
|
||||
];
|
||||
|
||||
@@ -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)%'
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user