Miscellaneous cleanup

This commit is contained in:
Timothy Warren 2016-04-08 18:05:52 -04:00
parent 1a182a62a7
commit 5d0b879623
4 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -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',
];

View File

@ -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

View File

@ -18,7 +18,7 @@ class RedisDriver implements \Aviat\Ion\Cache\CacheDriverInterface {
/**
* The redis extension class instance
* #var Redis
* @var Redis
*/
protected $redis;