2017-02-15 16:13:32 -05:00
|
|
|
<?php declare(strict_types=1);
|
2015-11-16 11:40:01 -05:00
|
|
|
/**
|
2017-02-15 16:13:32 -05:00
|
|
|
* Hummingbird Anime List Client
|
2015-11-16 11:40:01 -05:00
|
|
|
*
|
2021-02-23 15:38:29 -05:00
|
|
|
* An API client for Kitsu to manage anime and manga watch lists
|
2015-11-16 11:40:01 -05:00
|
|
|
*
|
2021-02-23 15:38:29 -05:00
|
|
|
* PHP version 8
|
2016-08-30 10:01:18 -04:00
|
|
|
*
|
2015-11-16 11:40:01 -05:00
|
|
|
* @package HummingbirdAnimeClient
|
2016-08-30 10:01:18 -04:00
|
|
|
* @author Timothy J. Warren <tim@timshomepage.net>
|
2021-02-23 15:38:29 -05:00
|
|
|
* @copyright 2015 - 2021 Timothy J. Warren
|
2016-08-30 10:01:18 -04:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
2021-02-23 15:38:29 -05:00
|
|
|
* @version 5.2
|
|
|
|
* @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient
|
2015-11-16 11:40:01 -05:00
|
|
|
*/
|
|
|
|
|
2020-12-11 15:37:55 -05:00
|
|
|
use function Aviat\AnimeClient\loadConfig;
|
2017-02-15 16:13:32 -05:00
|
|
|
|
2015-06-26 12:03:42 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Lower level configuration
|
|
|
|
//
|
|
|
|
// You shouldn't generally need to change anything below this line
|
|
|
|
// ----------------------------------------------------------------------------
|
2021-02-23 15:38:29 -05:00
|
|
|
$APP_DIR = dirname(__DIR__);
|
|
|
|
$ROOT_DIR = dirname($APP_DIR);
|
2016-01-06 15:44:40 -05:00
|
|
|
|
2020-12-11 15:37:55 -05:00
|
|
|
$tomlConfig = loadConfig(__DIR__);
|
2017-03-30 16:16:40 -04:00
|
|
|
|
2018-01-16 14:58:07 -05:00
|
|
|
return array_merge($tomlConfig, [
|
2021-02-23 15:38:29 -05:00
|
|
|
'root' => $ROOT_DIR,
|
2016-02-10 17:30:45 -05:00
|
|
|
'asset_dir' => "{$ROOT_DIR}/public",
|
2018-08-24 14:23:01 -04:00
|
|
|
'base_config_dir' => __DIR__,
|
|
|
|
'config_dir' => "{$APP_DIR}/config",
|
2018-10-11 09:53:14 -04:00
|
|
|
|
2018-10-09 18:10:20 -04:00
|
|
|
// No config defaults
|
|
|
|
'kitsu_username' => 'timw4mail',
|
|
|
|
'whose_list' => 'Someone',
|
|
|
|
'cache' => [
|
|
|
|
'connection' => [],
|
|
|
|
'driver' => 'null',
|
|
|
|
],
|
2018-10-11 09:53:14 -04:00
|
|
|
'secure_urls' => TRUE,
|
2016-02-10 17:30:45 -05:00
|
|
|
|
2018-10-05 14:27:07 -04:00
|
|
|
// Routing defaults
|
|
|
|
'asset_path' => '/public',
|
2018-10-09 10:11:42 -04:00
|
|
|
'default_list' => 'anime', //anime|manga
|
2018-10-05 14:27:07 -04:00
|
|
|
'default_anime_list_path' => 'watching', // watching|plan_to_watch|on_hold|dropped|completed|all
|
|
|
|
'default_manga_list_path' => 'reading', // reading|plan_to_read|on_hold|dropped|completed|all
|
|
|
|
'default_view_type' => 'cover_view', // cover_view|list_view
|
|
|
|
|
2015-09-17 23:11:18 -04:00
|
|
|
// Template file path
|
2016-01-06 15:44:40 -05:00
|
|
|
'view_path' => "{$APP_DIR}/views",
|
2015-09-17 23:11:18 -04:00
|
|
|
|
2015-06-26 12:03:42 -04:00
|
|
|
// Cache paths
|
2016-01-06 15:44:40 -05:00
|
|
|
'data_cache_path' => "{$APP_DIR}/cache",
|
|
|
|
'img_cache_path' => "{$ROOT_DIR}/public/images",
|
2015-06-26 12:03:42 -04:00
|
|
|
|
|
|
|
// Included config files
|
2016-01-06 15:44:40 -05:00
|
|
|
'routes' => require 'routes.php',
|
2017-03-30 16:16:40 -04:00
|
|
|
]);
|