Skip to content

Reverted the cloning implementation for the Session - #453

Merged
stof merged 1 commit into
minkphp:developfrom
stof:revert_clone
Jan 20, 2014
Merged

stof merged 1 commit into
minkphp:developfrom
stof:revert_clone

Conversation

@stof

@stof stof commented Jan 19, 2014

Copy link
Copy Markdown
Member

Closes #445

this should be merged before release 1.6.0

@stof

stof commented Jan 19, 2014

Copy link
Copy Markdown
Member Author

@aik099 is it OK for you ?

Cloning a Session would require making sure that all drivers all
cloneable, which would then require that all dependencies of these drivers
maintaining a state are cloneable as well. But this is not the case in the
existing drivers.
Thus, cloning the session would require checking that the object graph is
cloned in a consistent way (i.e. all references to the driver are
referencing a single clone for instance). The changes started for Mink 2.0
to have a cleaner architecture are making it really hard to ensure this.
So the decision was to revert this change before creating a stable release
including it.
Reverts minkphp#368
Closes minkphp#445
@aik099

aik099 commented Jan 20, 2014

Copy link
Copy Markdown
Member

Yes.

stof added a commit that referenced this pull request Jan 20, 2014
Reverted the cloning implementation for the Session
@stof
stof merged commit 57b4573 into minkphp:develop Jan 20, 2014
@stof
stof deleted the revert_clone branch January 20, 2014 11:02
@stof stof added this to the 1.6 milestone Mar 4, 2014
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