Check that we have a Slim container

This commit is contained in:
Pierre Rudloff 2016-10-13 17:02:41 +02:00
parent 41b9be34c5
commit 3a31cc0008

View file

@ -7,6 +7,7 @@ namespace Alltube\Controller;
use Alltube\Config;
use Alltube\VideoDownload;
use Interop\Container\ContainerInterface;
use Slim\Container;
use Slim\Http\Request;
use Slim\Http\Response;
use Slim\Http\Stream;
@ -46,7 +47,9 @@ class FrontController
{
$this->config = Config::getInstance();
$this->download = new VideoDownload();
$this->container = $container;
if ($container instanceof Container) {
$this->container = $container;
}
}
/**