feat: import destinations from the MyE&P travel export

This commit is contained in:
fromme committed 2026-09-29 12:57:54 +02:00
1 parent 5c7e702eab
commit 0f76c5a7b6
15 files changed
+791 -422

No files matched your search

-7
View File
@@ -1,13 +1,6 @@
# Read the documentation at https://github.com/thephpleague/flysystem-bundle/blob/master/docs/1-getting-started.md
flysystem:
storages:
xml_export.storage:
sftp:
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)%'
root: '%env(SFTP_XML_EXPORT_ROOT)%'
xml_dump.storage:
local:
directory: '%kernel.project_dir%/var/bpn'
+4 -4
View File
@@ -17,9 +17,9 @@ when@prod:
tasks:
# 03:20 rather than 03:00: MyE&P mirrors from BusProNet hourly overnight, on the
# hour, so an import at 03:00 can read a half written export.
- task: app:bpn-import
- task: app:myep-import
frequency: '20 3 * * *'
description: "Imports dates, products and hotels from BusProNet"
description: "Imports travel dates, products and hotels from the MyE&P API"
- task: app:cron
frequency: '0 1 * * *'
@@ -47,9 +47,9 @@ when@staging:
subject_prefix: "[E&P-Team STAGING]"
tasks:
- task: app:bpn-import
- task: app:myep-import
frequency: '50 3 * * *'
description: "Imports dates, products and hotels from BusProNet"
description: "Imports travel dates, products and hotels from the MyE&P API"
- task: app:cron
frequency: '30 2 * * *'
+1 -2
View File
@@ -130,7 +130,6 @@ services:
# it drops its records from that table.
$logger: '@monolog.logger.audit'
$houses: '%houses%'
$xmlExport: '@xml_export.storage'
$xmlDump: '@xml_dump.storage'
$teamerInactivePeriod: '%teamer_inactive_period%'
$contractUploadDeadlineDays: '%contract_upload_deadline_days%'
@@ -165,7 +164,7 @@ services:
- name: liip_imagine.cache.resolver
resolver: format_extension
App\Command\BpnImportCommand:
App\Command\MyEpImportCommand:
arguments:
$connection: '@doctrine.dbal.default_connection'