File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Resources/config/storage Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
<service id =" task.repository.task" class =" Task\TaskBundle\Entity\TaskRepository" public =" true" >
7
7
<factory service =" doctrine.orm.entity_manager" method =" getRepository" />
8
8
9
- <argument type =" string" >TaskBundle: Task</argument >
9
+ <argument type =" string" >Task\ TaskBundle\Entity\ Task</argument >
10
10
</service >
11
11
<service id =" task.storage.task" alias =" task.repository.task" public =" true" />
12
12
13
13
<service id =" task.repository.task_execution" class =" Task\TaskBundle\Entity\TaskExecutionRepository" public =" true" >
14
14
<factory service =" doctrine.orm.entity_manager" method =" getRepository" />
15
15
16
- <argument type =" string" >TaskBundle: TaskExecution</argument >
16
+ <argument type =" string" >Task\ TaskBundle\Entity\ TaskExecution</argument >
17
17
</service >
18
18
<service id =" task.storage.task_execution" alias =" task.repository.task_execution" public =" true" />
19
19
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public function testExecute()
27
27
{
28
28
$ singleTask = $ this ->createTask ('Test workload 1 ' );
29
29
$ laterTask = $ this ->createTask ('Test workload 2 ' );
30
- $ intervalTask = $ this ->createTask ('Test workload 3 ' , CronExpression:: factory ('@daily ' ));
30
+ $ intervalTask = $ this ->createTask ('Test workload 3 ' , new CronExpression ('@daily ' ));
31
31
32
32
/** @var TaskExecutionInterface[] $executions */
33
33
$ executions = [
@@ -81,7 +81,7 @@ public function testExecuteWithFail()
81
81
{
82
82
$ singleTask = $ this ->createTask ('Test workload 1 ' , null , FailTestHandler::class);
83
83
$ laterTask = $ this ->createTask ('Test workload 2 ' , null , FailTestHandler::class);
84
- $ intervalTask = $ this ->createTask ('Test workload 3 ' , CronExpression:: factory ('@daily ' ), FailTestHandler::class);
84
+ $ intervalTask = $ this ->createTask ('Test workload 3 ' , new CronExpression ('@daily ' ), FailTestHandler::class);
85
85
86
86
/** @var TaskExecutionInterface[] $executions */
87
87
$ executions = [
You can’t perform that action at this time.
0 commit comments