sftpbrowser/config/services.yaml

31 lines
856 B
YAML
Raw Normal View History

2022-12-23 16:27:07 +01:00
parameters:
sftpHost: '%env(resolve:SFTP_HOST)%'
sftpPort: '%env(resolve:SFTP_PORT)%'
sftpUser: '%env(resolve:SFTP_USER)%'
sftpPassword: '%env(resolve:SFTP_PASSWORD)%'
sftpFolder: '%env(resolve:SFTP_FOLDER)%'
2023-01-03 10:50:07 +01:00
fakeFiles: '%env(json:FAKE_FILES)%'
2022-12-23 16:27:07 +01:00
services:
_defaults:
autowire: true
autoconfigure: true
App\:
resource: '../src/'
exclude:
- '../src/DependencyInjection/'
- '../src/Entity/'
- '../src/Kernel.php'
App\Service\SftpService:
public: true
arguments: ["%kernel.project_dir%","@service_container"]
App\Service\UploadListener:
public: true
tags:
- { name: kernel.event_listener, event: oneup_uploader.post_persist, method: onUpload }
App\Service\UploadSamename:
public: true