Accept any PSR container in ViewFactory
This commit is contained in:
parent
29c432c159
commit
df2de166cb
1 changed files with 2 additions and 2 deletions
|
@ -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'];
|
||||
|
|
Loading…
Reference in a new issue