Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maxperei
Copy link
Member

@maxperei maxperei commented Dec 27, 2024

Q A
Bug fix? no
New feature? yes
BC breaks? yes
Fixed issue n/a
License MIT

@maxperei maxperei changed the base branch from master to main December 27, 2024 17:44
@maxperei maxperei force-pushed the feat/migration-sylius-latest-v1 branch 3 times, most recently from 78c7688 to 643f591 Compare December 30, 2024 13:59
@maxperei maxperei force-pushed the feat/migration-sylius-latest-v1 branch 2 times, most recently from 7a55bcf to fef29f9 Compare December 30, 2024 14:32
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)]
Copy link
Member

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")
Copy link
Member

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

Copy link
Member Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to clean ?

Copy link
Member Author

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'])]
Copy link
Member

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

Copy link
Member Author

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(...)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎 ✌️

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants