From df2de166cbe3aff17c5e34d89f9aba923f6c7f04 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Wed, 26 Apr 2017 01:08:42 +0200 Subject: [PATCH] Accept any PSR container in ViewFactory --- classes/ViewFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/ViewFactory.php b/classes/ViewFactory.php index a2f1087..a046c3e 100644 --- a/classes/ViewFactory.php +++ b/classes/ViewFactory.php @@ -5,7 +5,7 @@ namespace Alltube; -use Slim\Container; +use Psr\Container\ContainerInterface; use Slim\Http\Request; use Slim\Views\Smarty; use Slim\Views\SmartyPlugins; @@ -23,7 +23,7 @@ class ViewFactory * * @return Smarty */ - public static function create(Container $container, Request $request = null) + public static function create(ContainerInterface $container, Request $request = null) { if (!isset($request)) { $request = $container['request'];