Skip to content

Commit

Permalink
Merge branch 'v2.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
Padam87 committed Aug 2, 2022
2 parents a5f5ff4 + 1beeb52 commit 0660177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Attribute/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Padam87\CronBundle\Attribute;

#[\Attribute(\Attribute::TARGET_CLASS)]
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]
class Job
{
public string $minute;
Expand Down
2 changes: 1 addition & 1 deletion Util/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function createTab(InputInterface $input, ?array $config = null): Tab
$attributes = $reflectionClass->getAttributes(Job::class);

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

Expand Down

0 comments on commit 0660177

Please sign in to comment.