Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wright <[email protected]>
  • Loading branch information
betterthanclay committed Apr 25, 2024
1 parent a6b82fe commit 3436b25
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ By default, newly loaded caches use a generic Store implementation, however if y
namespace MyApp;

use DecodeLabs\Archetype;
use DecodeLabs\Archetype\Resolver\Extension as ArchetypeExtension;
use DecodeLabs\Stash\Store;
use DecodeLabs\Stash\Store\Generic;

Expand All @@ -147,9 +146,9 @@ class MyCache extends Generic
}
}

Archetype::register(new ArchetypeExtension(
Store::class, namespace::class
))
Archetype::extend(Store::class, namespace::class);

$myCache = Stash::load('MyCache'); // Will now use MyApp\MyCache
```


Expand Down

0 comments on commit 3436b25

Please sign in to comment.