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

Merge 3.x into 4.x #1486

Merged
merged 3 commits into from
Jul 23, 2022
Merged

Conversation

VincentLanglet
Copy link
Member

No description provided.

@VincentLanglet
Copy link
Member Author

SnapshotManager config is

<service id="sonata.page.manager.snapshot" class="%sonata.page.manager.snapshot.class%" public="true">
            <argument>%sonata.page.snapshot.class%</argument>
            <argument type="service" id="doctrine"/>
            <argument type="service" id="sonata.page.proxy.snapshot.factory"/>
            <argument/>
        </service>

Seems like the we're injecting '' instead of an array.

Any help is welcomed @jordisala1991 @eerison @Hanmac

@VincentLanglet VincentLanglet force-pushed the merge34 branch 2 times, most recently from 4b0d795 to 2cf62fb Compare July 23, 2022 14:00
@eerison
Copy link
Contributor

eerison commented Jul 23, 2022

%sonata.page.manager.snapshot.class%

I'm not sure, why do we need this %sonata.page.manager.snapshot.class%, I guess the idea is inject other class?

But it's the idea I guess we can do this using decorator?

@VincentLanglet
Copy link
Member Author

VincentLanglet commented Jul 23, 2022

My main concern was about the fourth argument of the constructor.

But seems like the SnapshotManager templates are

  • not used
  • not injected in the config
  • not in the interface

So I removed them

@VincentLanglet VincentLanglet requested a review from a team July 23, 2022 14:31
Copy link
Member

@jordisala1991 jordisala1991 left a comment

Choose a reason for hiding this comment

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

Only a pedantic question

@@ -63,6 +60,9 @@ protected function setUp(): void
$this->application->add($command);
}

/**
* @group legacy
Copy link
Member

Choose a reason for hiding this comment

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

why group legacy?

Copy link
Member

Choose a reason for hiding this comment

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

Answer myself to the question, because this is needed: #1488
We should remember to remove this on that PR.

@VincentLanglet VincentLanglet merged commit 60fb7bc into sonata-project:4.x Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants