SAAS-1071 - more work on celery backend
This commit is contained in:
parent
ee1ceb9281
commit
55d5fc62a2
5 changed files with 111 additions and 17 deletions
|
@ -3,7 +3,7 @@
|
|||
class CeleryServiceFactory {
|
||||
|
||||
/**
|
||||
*
|
||||
* Given an identifying string, get a ThirdPartyCeleryService object of that type
|
||||
*
|
||||
* @param $serviceName string the name of the service to create
|
||||
*
|
||||
|
@ -13,8 +13,11 @@ class CeleryServiceFactory {
|
|||
switch($serviceName) {
|
||||
case SOUNDCLOUD_SERVICE_NAME:
|
||||
return new Application_Service_SoundcloudService();
|
||||
case PODCAST_SERVICE_NAME:
|
||||
return new Application_Service_PodcastService();
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue