Skip to content

Commit

Permalink
Revert UserFrosting\Cache\Cache
Browse files Browse the repository at this point in the history
This cause issue further down the road. `Tags()` can return Repository for example.
  • Loading branch information
lcharette committed Sep 29, 2023
1 parent 22cc608 commit 6078a01
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/Alert/CacheAlertStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

namespace UserFrosting\Alert;

use Illuminate\Cache\Repository as Cache;
use Illuminate\Cache\TaggedCache;
use UserFrosting\Cache\Cache;
use UserFrosting\I18n\Translator;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Cache/AbstractStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace UserFrosting\Cache;

use Illuminate\Cache\Repository as Cache;
use Illuminate\Contracts\Cache\Store;

abstract class AbstractStore
Expand Down
23 changes: 0 additions & 23 deletions src/Cache/Cache.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/Alert/CacheAlertStreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

namespace UserFrosting\Tests\Alert;

use Illuminate\Cache\Repository as Cache;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use UserFrosting\Alert\AlertStream;
use UserFrosting\Alert\CacheAlertStream;
use UserFrosting\Cache\Cache;
use UserFrosting\I18n\Translator;

class CacheAlertStreamTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Cache/CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

namespace UserFrosting\Tests\Cache;

use Illuminate\Cache\Repository as Cache;
use Illuminate\Contracts\Cache\Repository as CacheContract;
use PHPUnit\Framework\TestCase;
use UserFrosting\Cache\ArrayStore;
use UserFrosting\Cache\Cache;
use UserFrosting\Cache\FileStore;

class CacheTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Cache/MemcachedStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace UserFrosting\Tests\Cache;

use UserFrosting\Cache\Cache;
use Illuminate\Cache\Repository as Cache;
use UserFrosting\Cache\MemcachedStore;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Cache/RedisStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace UserFrosting\Tests\Cache;

use UserFrosting\Cache\Cache;
use Illuminate\Cache\Repository as Cache;
use UserFrosting\Cache\RedisStore;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Cache/StoreTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

namespace UserFrosting\Tests\Cache;

use Illuminate\Cache\Repository as Cache;
use PHPUnit\Framework\TestCase;
use UserFrosting\Cache\Cache;

abstract class StoreTestCase extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Cache/TaggableFileStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace UserFrosting\Tests\Cache;

use UserFrosting\Cache\Cache;
use Illuminate\Cache\Repository as Cache;
use UserFrosting\Cache\TaggableFileStore;
use UserFrosting\UniformResourceLocator\Normalizer;

Expand Down

0 comments on commit 6078a01

Please sign in to comment.