-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservices.yaml
More file actions
49 lines (41 loc) · 1.86 KB
/
Copy pathservices.yaml
File metadata and controls
49 lines (41 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This file is the entry point to configure your own services.
# Files in the packages/ subdirectory configure your dependencies.
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
uploadcare_public_key: '%env(UPLOADCARE_PUBLIC_KEY)%'
uploadcare_secret_key: '%env(UPLOADCARE_SECRET_KEY)%'
auth_url_secret_key: '%env(AUTH_URL_SECRET_KEY)%'
auth_url_cdn_host: '%env(AUTH_URL_CDN_HOST)%'
services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
bind:
$publicKey: '%uploadcare_public_key%'
# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
App\:
resource: '../src/'
exclude:
- '../src/DependencyInjection/'
- '../src/Entity/'
- '../src/Kernel.php'
Uploadcare\AuthUrl\Token\TokenInterface:
class: Uploadcare\AuthUrl\Token\AkamaiToken
arguments:
- '%auth_url_secret_key%'
Uploadcare\AuthUrl\AuthUrlConfig:
arguments:
- '%auth_url_cdn_host%'
- '@Uploadcare\AuthUrl\Token\TokenInterface'
Uploadcare\Interfaces\ConfigurationInterface:
class: Uploadcare\Configuration
factory: ['Uploadcare\Configuration', 'create']
arguments: ['%uploadcare_public_key%', '%uploadcare_secret_key%']
uploadcare.configuration:
alias: 'Uploadcare\Interfaces\ConfigurationInterface'
Uploadcare\Api:
arguments:
- '@uploadcare.configuration'