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

Remove pimple as a supported container #133

Merged
merged 5 commits into from
Jan 8, 2024

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Dec 5, 2023

Remove support for Pimple due to the abandonment of laminas-pimple-config

@gsteel gsteel added the Enhancement New feature or request label Dec 5, 2023
@gsteel gsteel added this to the 3.15.0 milestone Dec 5, 2023
@gsteel
Copy link
Member Author

gsteel commented Dec 5, 2023

I'll have to come back to this later to resolve the psalm issues…

@froschdesign
Copy link
Member

Related to mezzio/mezzio#145

Comment on lines 58 to 71
$this->container
->expects($this->exactly(2))
->method('get')
->withConsecutive(
[RouterInterface::class],
[TemplateRendererInterface::class],
)
->with(self::callback(static function (string $name): bool {
self::assertTrue(in_array($name, [
RouterInterface::class,
TemplateRendererInterface::class,
]));

return true;
}))
->willReturnOnConsecutiveCalls(
$this->router,
$renderer
Copy link
Member

Choose a reason for hiding this comment

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

Imo, replace mock with a stub and use return map.

Copy link
Member

Choose a reason for hiding this comment

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

Or add return map since assumption about call older is brittle

@gsteel gsteel force-pushed the remove-pimple-support branch 2 times, most recently from eabb590 to f857563 Compare January 8, 2024 15:41
@Xerkus Xerkus merged commit 5eb7c5a into mezzio:3.15.x Jan 8, 2024
13 checks passed
@gsteel gsteel deleted the remove-pimple-support branch January 8, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants