Skip to content

Commit

Permalink
Merge pull request #6 from thoughtco/feature/add-cache-invalidator-bi…
Browse files Browse the repository at this point in the history
…nding
  • Loading branch information
anditopping authored Feb 7, 2024
2 parents 043267c + 9f1a3ee commit 684a6b3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace App\Providers;

use App\Caching\CacheInvalidator;
use Illuminate\Support\ServiceProvider;
use Statamic\StaticCaching\Cacher;

class AppServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->bind(CacheInvalidator::class, function ($app) {
return new CacheInvalidator(
$app[Cacher::class],
$app['config']['statamic.static_caching.invalidation.rules']
);
});
}
}
1 change: 1 addition & 0 deletions starter-kit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export_paths:
- app/Caching
- app/Console
- app/Listeners
- app/Providers/AppServiceProvider.php
- app/Providers/EventServiceProvider.php
- config/blurhash.php
- config/captcha.php
Expand Down

0 comments on commit 684a6b3

Please sign in to comment.