-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.x] feat(upgrade): bump codebase to match sylius v[1.12|1.13|1.14] #102
base: main
Are you sure you want to change the base?
Conversation
maxperei
commented
Dec 27, 2024
•
edited
Loading
edited
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | yes |
Fixed issue | n/a |
License | MIT |
78c7688
to
643f591
Compare
7a55bcf
to
fef29f9
Compare
use Synolia\SyliusSchedulerCommandPlugin\Components\Exceptions\Checker\IsNotDueException; | ||
use Synolia\SyliusSchedulerCommandPlugin\Entity\CommandInterface; | ||
|
||
/** | ||
* This checker only works if current date/time is checked every minutes | ||
*/ | ||
#[AutoconfigureTag(IsDueCheckerInterface::TAG_ID)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove the TAG_ID, and use the IsDueCheckerInterface::class instead ✨
@@ -10,80 +10,55 @@ | |||
use Doctrine\ORM\Mapping as ORM; | |||
use Synolia\SyliusSchedulerCommandPlugin\Repository\CommandRepository; | |||
|
|||
/** | |||
* @ORM\Entity(repositoryClass="Synolia\SyliusSchedulerCommandPlugin\Repository\CommandRepository") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should stay for now IMHO, let's remove them for v2 compatible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but rector has a clearly different opinion ^^
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
use Synolia\SyliusSchedulerCommandPlugin\Humanizer\HumanizerInterface; | ||
use Twig\Environment; | ||
|
||
final class ScheduledCommandHumanReadableExpressionType implements FieldTypeInterface | ||
// app.grid_field.scheduled_command.humanReadableExpression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to clean ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yezir
{ | ||
public function __construct( | ||
private readonly KernelInterface $kernel, | ||
#[Autowire(['_complete'])] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any namespace that could match with this one. I saw it was set in services.yaml, but really weird
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷
@@ -14,7 +14,7 @@ final class BytesFormatterExtension extends AbstractExtension | |||
public function getFilters(): array | |||
{ | |||
return [ | |||
new TwigFilter('format_bytes', [$this, 'formatBytes']), | |||
new TwigFilter('format_bytes', $this->formatBytes(...)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎 ✌️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥