forked from YCloudYUSA/yusaopeny_gated_content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopeny_gated_content.services.yml
25 lines (25 loc) · 1.02 KB
/
openy_gated_content.services.yml
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
services:
openy_gated_content.subscriber:
class: '\Drupal\openy_gated_content\EventSubscriber\GatedContentSubscriber'
arguments: ['@current_user']
tags:
- { name: 'event_subscriber' }
openy_gated_content.user_service:
class: '\Drupal\openy_gated_content\GCUserService'
arguments: ['@entity_type.manager', '@plugin.manager.mail', '@language_manager']
openy_gated_content.route_subscriber:
class: '\Drupal\openy_gated_content\EventSubscriber\RouteSubscriber'
tags:
- { name: event_subscriber }
openy_gated_content.user_login_subscriber:
class: '\Drupal\openy_gated_content\EventSubscriber\GCUserLoginSubscriber'
arguments: ['@openy_gated_content.user_service', '@config.factory', '@plugin.manager.gc_identity_provider']
tags:
- { name: event_subscriber }
# Custom cache bin for favorites controller.
cache.vy_favorites:
class: Drupal\Core\Cache\CacheBackendInterface
tags:
- { name: cache.bin }
factory: cache_factory:get
arguments: ['vy_favorites']