Miscellaneous cleanup
This commit is contained in:
parent
d8e67e914f
commit
35b42d5234
@ -10,7 +10,6 @@ use Aura\Router\RouterContainer;
|
||||
use Aura\Session\SessionFactory;
|
||||
use Monolog\Logger;
|
||||
use Monolog\Handler\RotatingFileHandler;
|
||||
use Monolog\Handler\BrowserConsoleHandler;
|
||||
use Zend\Diactoros\ServerRequestFactory;
|
||||
use Zend\Diactoros\Response;
|
||||
|
||||
@ -68,9 +67,6 @@ return function(array $config_array = []) {
|
||||
$session = (new SessionFactory())->newInstance($_COOKIE);
|
||||
$container->set('session', $session);
|
||||
|
||||
$container->set('url-generator', new UrlGenerator($container));
|
||||
|
||||
|
||||
// Miscellaneous helper methods
|
||||
$anime_client = new AnimeClient();
|
||||
$anime_client->setContainer($container);
|
||||
@ -82,9 +78,10 @@ return function(array $config_array = []) {
|
||||
$container->set('manga-model', new Model\Manga($container));
|
||||
$container->set('anime-collection-model', new Model\AnimeCollection($container));
|
||||
|
||||
// Miscellaneous Classes
|
||||
$container->set('auth', new HummingbirdAuth($container));
|
||||
|
||||
$container->set('cache', new CacheManager($container));
|
||||
$container->set('url-generator', new UrlGenerator($container));
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Dispatcher
|
||||
|
@ -30,7 +30,6 @@ $base_config = [
|
||||
'img_cache_path' => "{$ROOT_DIR}/public/images",
|
||||
|
||||
// Included config files
|
||||
//'database' => require 'database.php',
|
||||
'menus' => require 'menus.php',
|
||||
'routes' => require 'routes.php',
|
||||
];
|
@ -224,7 +224,7 @@ class Manga extends API {
|
||||
}
|
||||
|
||||
/**
|
||||
* Check the status of the cache and return the appropriate response
|
||||
* Transform the response to be more consistent
|
||||
*
|
||||
* @param \GuzzleHttp\Message\Response $response
|
||||
* @codeCoverageIgnore
|
||||
|
@ -18,7 +18,7 @@ class RedisDriver implements \Aviat\Ion\Cache\CacheDriverInterface {
|
||||
|
||||
/**
|
||||
* The redis extension class instance
|
||||
* #var Redis
|
||||
* @var Redis
|
||||
*/
|
||||
protected $redis;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user