Skip to content

Commit

Permalink
Remove desarrolla2 cache class from the core of the library
Browse files Browse the repository at this point in the history
  • Loading branch information
markmercedes committed Jul 28, 2014
1 parent 457a191 commit 1055be1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 68 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ ConfigFactory::add('default', new Config(array(
* To create your own cache adapters, implement the interface TRest\Cache\CacheAdapterInterface
* and provide an instance of your class to the configuration key named cacheAdapter of your connection.
*
* The class DesaCache is just a class that implements the interface TRest\Cache\CacheAdapterInterface and uses
* the library https://github.com/desarrolla2/Cache to handle the caching functionallity.
* Here should be passed an instance of a class that implements the interface TRest\Cache\CacheAdapterInterface.
*
*/
'cacheAdapter' => new DesaCache(new \Desarrolla2\Cache\Adapter\Apc())
'cacheAdapter' => new ClassImplementingCacheAdapterInterface()
)));
```

Expand Down
58 changes: 0 additions & 58 deletions TRest/Cache/DesaCache.php

This file was deleted.

5 changes: 1 addition & 4 deletions TRest/trest_init.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

use TRest\Config\ConfigFactory;
use TRest\Config\Config;
use TRest\Cache\DesaCache;

/**
* Api brought to you by Josue Abreu <https://github.com/gotjosh> from Pixel
Expand All @@ -31,8 +30,7 @@
*/
ConfigFactory::add('default', new Config(array(
'apiUrl' => 'http://pixelpt-sandwich-api.herokuapp.com/',
'singleItemNode' => 'sandwich',
'cacheAdapter' => new DesaCache(new \Desarrolla2\Cache\Adapter\Apc())
'singleItemNode' => 'sandwich'
)));

/**
Expand All @@ -45,5 +43,4 @@
*/
ConfigFactory::add('StackOverflow', new Config(array(
'apiUrl' => 'https://api.stackexchange.com/2.2/',
'cacheAdapter' => new DesaCache(new \Desarrolla2\Cache\Adapter\Apc())
)));
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"type": "library",
"keywords": ["TRest","ORM", "Restful"],
"description": "TRest is an ORM that maps REST resources to PHP objects. Designed to use in applications that need to consume data from a RESTful API.",
"require": {
"desarrolla2/cache": "1.7.0"
},
"autoload": {
"psr-4": {"TRest\\": ["TRest/"]}
},
Expand Down

0 comments on commit 1055be1

Please sign in to comment.