Skip to content

Commit

Permalink
Merge branch 'release/v0.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
betterthanclay committed Nov 9, 2023
2 parents 2dd6480 + 1786b49 commit cc007ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.2.1 (2023-11-09)
* Improved selection of drivers to purge

## v0.2.0 (2023-11-06)
* Added Dovetail config implementation
* Converted PileUpPolicy to enum
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"nesbot/carbon": "^2.62"
},
"require-dev": {
"decodelabs/dovetail": "^0.1.3",
"decodelabs/dovetail": "^0.1.3|^0.2",
"decodelabs/genesis": "^0.7.1|^0.8",
"decodelabs/phpstan-decodelabs": "^0.6",

Expand Down
4 changes: 3 additions & 1 deletion src/Stash/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use DecodeLabs\Stash;
use DecodeLabs\Stash\Store\Generic as GenericStore;
use DecodeLabs\Veneer;
use ReflectionClass;
use Throwable;

class Context
Expand Down Expand Up @@ -191,7 +192,8 @@ public function loadDriver(
*/
public function purgeAll(): void
{
$drivers = self::DRIVERS + ($this->getConfig()?->getAllDrivers() ?? []);
$drivers = ($this->getConfig()?->getAllDrivers() ?? []);
$drivers[] = (new ReflectionClass($this->loadDriverFor('default')))->getShortName();
$drivers = array_unique($drivers);

foreach ($drivers as $name) {
Expand Down

0 comments on commit cc007ab

Please sign in to comment.