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

Major Refactoring #44

Merged
merged 49 commits into from
May 10, 2014
Merged

Major Refactoring #44

merged 49 commits into from
May 10, 2014

Conversation

tedivm
Copy link
Member

@tedivm tedivm commented May 8, 2014

[Coverage Status](https://coveralls.io/r/tedivm/TedivmStashBundle?branch= refactor)

This is a major refactoring meant to improve test coverage, increase efficiency, and ease the general use of this bundle.

  • Testing has been completely expanded, with the goal of getting over 95% coverage.
  • Numerous bugs and consistency issues have been resolved.
  • "CacheLogger" has been renamed to "CacheTracker" to distinguish between it and the PSR Logger items.
  • Handlers have been renamed to Drivers to match upstream labeling.
  • Created a new CacheItem the replaces the functionality of the CacheObjectWrapper. The CacheItem is an extension of the Stash\Item, but adds the Tracker abilities where needed.
  • CacheService more efficiently wraps the Pool objects.
  • Updated to new dev version of Stash to take advantage of upstream changes in testing and functionality.

tedivm added 30 commits May 7, 2014 00:07
CacheService now uses itself as a proper Pool class. It creates
CacheItem objects that extends the Stash\Item classes directly, but
also give optional data collection support. This CacheItem class
replaces the CacheResultObject.
Changing Logger to Tracker makes it clear what this function does
compared to the actual monolog-style tracking.

Handler to Driver is meant to maintain consistency with Stash and it’s
terminology.
Changed “logRequest” to “trackRequest”, and removed the namespace
trimming from the key as it’s no longer needed. Plus tests!
The getDrivers tweak simply uses the label instead of the class name
when returning the names of available drivers.
‘cause I fail at remembering to do this . . .
People who use the Doctrine Adaptor should have Doctrine in their own
composer file, and we shouldn’t make doctrine a dependency for projects
that don’t need it. This is a step in that direction that also allows
us to still test the Doctrine Adaptor.
@tedivm tedivm changed the title [WIP] Major Refactoring Major Refactoring May 10, 2014
tedivm added a commit that referenced this pull request May 10, 2014
@tedivm tedivm merged commit 42c3fb4 into master May 10, 2014
@tedivm tedivm deleted the refactor branch May 10, 2014 22:24
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.

None yet

1 participant