Skip to content

Commit 0660177

Browse files
committed
Merge branch 'v2.x'
2 parents a5f5ff4 + 1beeb52 commit 0660177

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Attribute/Job.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Padam87\CronBundle\Attribute;
44

5-
#[\Attribute(\Attribute::TARGET_CLASS)]
5+
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]
66
class Job
77
{
88
public string $minute;

Util/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function createTab(InputInterface $input, ?array $config = null): Tab
2828
$attributes = $reflectionClass->getAttributes(Job::class);
2929

3030
foreach ($attributes as $attribute) {
31-
$this->processJob(new Job(...$attribute->getArguments()), $input, $config, $commandInstance, $tab);
31+
$this->processJob($attribute->newInstance(), $input, $config, $commandInstance, $tab);
3232
}
3333
}
3434

0 commit comments

Comments
 (0)