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