12 lines
323 B
PHP
12 lines
323 B
PHP
<?php
|
|
|
|
class stTaskSchedulerImportFactory
|
|
{
|
|
public function createImport(stTaskInterface $task): stTaskSchedulerImportInterface
|
|
{
|
|
$configuration = stTaskSchedulerImportConfiguration::get($task->getId());
|
|
$class = $configuration->getClass();
|
|
|
|
return new $class($task, $configuration);
|
|
}
|
|
} |