2015-06-16 21:10:08 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class CeleryServiceFactory {
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param $serviceName string the name of the service to create
|
|
|
|
*
|
2015-09-18 21:34:55 +02:00
|
|
|
* @return Application_Service_ThirdPartyCeleryService|null
|
2015-06-16 21:10:08 +02:00
|
|
|
*/
|
|
|
|
public static function getService($serviceName) {
|
|
|
|
switch($serviceName) {
|
|
|
|
case SOUNDCLOUD_SERVICE_NAME:
|
2015-09-18 21:34:55 +02:00
|
|
|
return new Application_Service_SoundcloudService();
|
2015-06-16 21:10:08 +02:00
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|