sftpbrowser/config/services.yaml

30 lines
818 B
YAML

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)%'
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