-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat: "in memory" behavior #590
Draft
nikophil
wants to merge
1
commit into
zenstruck:2.x
Choose a base branch
from
nikophil:feat/in-memory-behavior
base: 2.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nikophil
force-pushed
the
feat/in-memory-behavior
branch
from
April 9, 2024 07:14
3e88d34
to
f7be7ac
Compare
nikophil
force-pushed
the
feat/in-memory-behavior
branch
3 times, most recently
from
May 1, 2024 18:55
4add46a
to
57bbc01
Compare
nikophil
commented
May 1, 2024
nikophil
force-pushed
the
feat/in-memory-behavior
branch
2 times, most recently
from
May 7, 2024 19:59
f6684d2
to
7914ee1
Compare
nikophil
force-pushed
the
feat/in-memory-behavior
branch
2 times, most recently
from
June 25, 2024 14:39
23b2122
to
51dac5b
Compare
nikophil
force-pushed
the
feat/in-memory-behavior
branch
from
August 18, 2024 17:22
51dac5b
to
4b3c8e2
Compare
nikophil
commented
Aug 18, 2024
src/Configuration.php
Outdated
Comment on lines
114
to
134
public function enableInMemory(): void | ||
{ | ||
$this->inMemory = true; | ||
} | ||
|
||
public function isInMemoryEnabled(): bool | ||
{ | ||
return $this->inMemory; | ||
} |
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.
At first, I did something like:
Configuration::instance()->persistence()->enableInMemory();
and the $inMemory
boolean was stored in PersistenceManager
. But then, all InMemoryTest
did not worked when no persistence is activated, which is a non-sense 🤷
Then I decided to store this in the Configuration
class
nikophil
force-pushed
the
feat/in-memory-behavior
branch
12 times, most recently
from
August 19, 2024 18:04
56a501b
to
558fc5f
Compare
smnandre
reviewed
Aug 31, 2024
nikophil
force-pushed
the
feat/in-memory-behavior
branch
3 times, most recently
from
October 25, 2024 16:55
5e8a734
to
90502f7
Compare
nikophil
force-pushed
the
feat/in-memory-behavior
branch
from
October 26, 2024 08:51
90502f7
to
7608b78
Compare
nikophil
force-pushed
the
feat/in-memory-behavior
branch
from
November 11, 2024 10:49
7608b78
to
191bdf4
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces "in-memory" behavior
fixes #533
NB: In a follow up PR, I'll introduce
InMemoryRepositoryDecorator
, so it will be easier to make assertions