Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

MongoDB to MongoDb #7034

Merged
merged 1 commit into from
Dec 16, 2014
Merged

MongoDB to MongoDb #7034

merged 1 commit into from
Dec 16, 2014

Conversation

marc-mabe
Copy link
Member

Our coding style defines names to be in CamelCase but this one was MIXEDCase.
The cache adapter wasn't released until now so this is no BC break but the session save handler and the log writer i thing. But normally PHP classes and methods are case-insensitive so this can only be an issue with some autoloaders on case-sensitive fs.

I think it's OK for the next minor release.

@Ocramius thoughts ?

@marc-mabe marc-mabe changed the title Mongo db to mongo db MongoDB to MongoDb Dec 13, 2014
@@ -34,7 +34,7 @@ class AdapterPluginManager extends AbstractPluginManager
'memcache' => 'Zend\Cache\Storage\Adapter\Memcache',
'memcached' => 'Zend\Cache\Storage\Adapter\Memcached',
'memory' => 'Zend\Cache\Storage\Adapter\Memory',
'mongodb' => 'Zend\Cache\Storage\Adapter\MongoDB',
'mongodb' => 'Zend\Cache\Storage\Adapter\MongoDd',
Copy link
Contributor

Choose a reason for hiding this comment

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

typo : Dd to Db ...

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed - thanks!

@Ocramius Ocramius added this to the 2.4.0 milestone Dec 13, 2014
@Ocramius
Copy link
Member

We can't change the casing of classes existing before 2.4, @marc-mabe

@marc-mabe
Copy link
Member Author

@Ocramius The PR is for develop so it's already marked >=2.4

@marc-mabe
Copy link
Member Author

@Ocramius You forgot the label Log

*/
class MongoDB extends AbstractWriter
class MongoDb extends AbstractWriter
Copy link
Member

Choose a reason for hiding this comment

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

Cannot change this, as it was already released in 2.3

@Ocramius
Copy link
Member

Log and Session changes need to be reverted

@marc-mabe
Copy link
Member Author

@Ocramius Now I know what you mean. I'll remove the commit for Log and Session and move it into another PR marked for ZF3

@marc-mabe
Copy link
Member Author

@Ocramius split into two PRs (see #7041) So this one only renames the new cache storage introduced in 2.4

@Ocramius
Copy link
Member

@marc-mabe thanks for understanding the trouble with this kind of rename :-)

@marc-mabe
Copy link
Member Author

@Ocramius you are welcome :-)
PS: Now the labels for Log and Session can be removed

Ocramius added a commit that referenced this pull request Dec 16, 2014
@Ocramius Ocramius merged commit e97c3dd into zendframework:develop Dec 16, 2014
@Ocramius
Copy link
Member

@marc-mabe merged, thanks!

@weierophinney
Copy link
Member

@Ocramius and @marc-mabe : this is a BC break, plain and simple. While many (most?) people will be using the SM in order to setup the log, cache, and session adapters, the problem is that anybody who was manually instantiating the classes previously now has broken code, as the classes will no longer resolve — and, frankly, for no good or apparent reason. CS should have been considered before releasing these as stable; once we go stable, we have to live with the names until the next major revision.

I'm thinking we should revert this, and we can re-apply for 3.0.

I'm flagging this to revert.

weierophinney added a commit that referenced this pull request Feb 23, 2015
See #7034

This reverts commit e97c3dd, reversing
changes made to 7440246.

The changes made in the original merge are backwards incompatible, and should
wait until v3 or Zend\Cache. Renaming at this time would break code for existing
users, particularly those who were referencing the classes by name.
@weierophinney
Copy link
Member

I've reverted this in the current develop branch.

@marc-mabe Please re-submit after we break the cache component into its own repo, and we can start considering v3 patches.

@weierophinney weierophinney removed this from the 2.4.0 milestone Feb 23, 2015
@Ocramius
Copy link
Member

@weierophinney why did you revert? This stuff was not yet in a stable tag.

@weierophinney
Copy link
Member

DAMMIT! I missed that aspect. Reverting the revert...

weierophinney added a commit that referenced this pull request Feb 23, 2015
…ngoDb""

See #7034

This reverts commit a1dc4b0.

The renames that happened were in unreleased code. As such, they were 100% safe.
This commit reverts the revert, restoring the original merge.
@weierophinney weierophinney added this to the 2.4.0 milestone Feb 23, 2015
gianarb pushed a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
…-mabe/MongoDB_to_MongoDb"

See zendframework/zendframework#7034

This reverts commit e97c3ddcb4263ca111fe8c53ce00b935634c690a, reversing
changes made to 7440246ae32bd3dab5cff7dac5afe17f16dc8bc8.

The changes made in the original merge are backwards incompatible, and should
wait until v3 or Zend\Cache. Renaming at this time would break code for existing
users, particularly those who were referencing the classes by name.
weierophinney added a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
…rom marc-mabe/MongoDB_to_MongoDb""

See zendframework/zendframework#7034

This reverts commit a1dc4b0883e97a01d89472a5d3eca8e8c55a1e3a.

The renames that happened were in unreleased code. As such, they were 100% safe.
This commit reverts the revert, restoring the original merge.
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants