Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

laravel 5.5 compatibility #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/CacheFallbackServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Illuminate\Cache\CacheServiceProvider;
use Illuminate\Cache\MemcachedConnector;

use Illuminate\Cache\Console\ClearCommand;
class CacheFallbackServiceProvider extends CacheServiceProvider
{
/**
Expand Down Expand Up @@ -48,4 +48,18 @@ public function register()

$this->registerCommands();
}
/**
* Register the cache related console commands.
*
* @return void
*/
public function registerCommands()
{
$this->app->singleton('command.cache.clear', function ($app) {
return new ClearCommand($app['cache']);
});

$this->commands('command.cache.clear');
}

}