-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathServices.yaml
executable file
·42 lines (35 loc) · 1.41 KB
/
Services.yaml
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
parameters:
instagram.api_baseurl: 'https://api.instagram.com'
instagram.graph_api_baseurl: 'https://graph.instagram.com/v20.0'
services:
_defaults:
autowire: true
autoconfigure: true
public: false
SvenPetersen\Instagram\:
resource: '../Classes/*'
# Service Aliases
SvenPetersen\Instagram\Factory\ApiClientFactoryInterface: '@SvenPetersen\Instagram\Factory\ApiClientFactory'
SvenPetersen\Instagram\Factory\FeedFactoryInterface: '@SvenPetersen\Instagram\Factory\FeedFactory'
# Services
SvenPetersen\Instagram\Service\AccessTokenService:
arguments:
$requestFactory: '@Psr\Http\Message\RequestFactoryInterface'
$feedFactory: '@SvenPetersen\Instagram\Factory\FeedFactoryInterface'
$apiBaseUrl: '%instagram.api_baseurl%'
$graphApiBaseUrl: '%instagram.graph_api_baseurl%'
SvenPetersen\Instagram\Factory\ApiClientFactory:
arguments:
$requestFactory: '@Psr\Http\Message\RequestFactoryInterface'
$apiBaseUrl: '%instagram.graph_api_baseurl%'
# Commands
SvenPetersen\Instagram\Command\AccessTokenRefresherCommand:
tags:
- name: 'console.command'
command: 'instagram:accesstoken:refresh-all'
description: 'Refreshes all accesstokens'
SvenPetersen\Instagram\Command\ImportPostsCommand:
tags:
- name: 'console.command'
command: 'instagram:import:posts'
description: 'Imports the latest posts of a given username.'