Use test config for controller tests
This commit is contained in:
parent
2051ee410c
commit
2a31951217
2 changed files with 13 additions and 13 deletions
|
@ -66,9 +66,13 @@ class FrontController
|
|||
*
|
||||
* @param Container $container Slim dependency container
|
||||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
public function __construct(ContainerInterface $container, Config $config = null)
|
||||
{
|
||||
$this->config = Config::getInstance();
|
||||
if (isset($config)) {
|
||||
$this->config = $config;
|
||||
} else {
|
||||
$this->config = Config::getInstance();
|
||||
}
|
||||
$this->download = new VideoDownload();
|
||||
$this->container = $container;
|
||||
$this->view = $this->container->get('view');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue