diff --git a/.gitignore b/.gitignore index cab47bdd..9056ec31 100644 --- a/.gitignore +++ b/.gitignore @@ -146,4 +146,6 @@ public/images/manga/** public/images/characters/** public/images/people/** public/mal_mappings.json -.phpunit.result.cache \ No newline at end of file +.phpunit.result.cache + +.is-dev \ No newline at end of file diff --git a/app/bootstrap.php b/app/bootstrap.php index 02dd99c7..34068f1b 100644 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -25,10 +25,11 @@ use Aviat\AnimeClient\API\{ Kitsu\KitsuRequestBuilder }; use Aviat\AnimeClient\Model; -use Aviat\Banker\Pool; +use Aviat\Banker\Teller; use Aviat\Ion\Config; use Aviat\Ion\Di\Container; use Aviat\Ion\Di\ContainerInterface; +use Psr\SimpleCache\CacheInterface; use Laminas\Diactoros\{Response, ServerRequestFactory}; use Monolog\Handler\RotatingFileHandler; use Monolog\Logger; @@ -64,10 +65,10 @@ return static function (array $configArray = []): Container { $container->set('config', fn () => new Config($configArray)); // Create Cache Object - $container->set('cache', static function(ContainerInterface $container): Pool { + $container->set('cache', static function(ContainerInterface $container): CacheInterface { $logger = $container->getLogger(); $config = $container->get('config')->get('cache'); - return new Pool($config, $logger); + return new Teller($config, $logger); }); // Create Aura Router Object @@ -113,7 +114,7 @@ return static function (array $configArray = []): Container { // Models $container->set('kitsu-model', static function(ContainerInterface $container): Kitsu\Model { - $requestBuilder = new KitsuRequestBuilder(); + $requestBuilder = new KitsuRequestBuilder($container); $requestBuilder->setLogger($container->getLogger('kitsu-request')); $listItem = new Kitsu\ListItem(); diff --git a/app/config/cache.toml.example b/app/config/cache.toml.example index 6de18499..74935015 100644 --- a/app/config/cache.toml.example +++ b/app/config/cache.toml.example @@ -4,7 +4,7 @@ # See https://git.timshomepage.net/aviat/banker for more information -# Available drivers are apcu, memcache, memcached, redis or null +# Available drivers are memcached, redis or null # Null cache driver means no caching driver = "redis" diff --git a/app/views/anime/cover-item.php b/app/views/anime/cover-item.php index b1ad8cb0..af680967 100644 --- a/app/views/anime/cover-item.php +++ b/app/views/anime/cover-item.php @@ -30,7 +30,15 @@ 0): ?>
-
Rewatched time(s)
+ +
Rewatched once
+ +
Rewatched twice
+ +
Rewatched thrice
+ +
Rewatched times
+
diff --git a/app/views/anime/details.php b/app/views/anime/details.php index c3089004..9e72b539 100644 --- a/app/views/anime/details.php +++ b/app/views/anime/details.php @@ -45,7 +45,7 @@

- +


diff --git a/app/views/anime/list.php b/app/views/anime/list.php index 5b3fd6be..1c2d482b 100644 --- a/app/views/anime/list.php +++ b/app/views/anime/list.php @@ -86,7 +86,17 @@