controllers/FrontController.php
public function index(Request $request, Response $response)
    {
        $uri = $request->getUri()->withUserInfo('');
        $this->view->render(
            $response,
            'index.tpl',
            [
                'config'           => $this->config,
                'class'            => 'index',
                'description'      => _('Easily download videos from Youtube, Dailymotion, Vimeo and other websites.'),
                'domain'           => $uri->getScheme().'://'.$uri->getAuthority(),
                'canonical'        => $this->getCanonicalUrl($request),
                'supportedLocales' => $this->localeManager->getSupportedLocales(),
                'locale'           => $this->localeManager->getLocale(),
            ]
        );

        return $response;
    }
public function index(Request $request, Response $response)
    {
        $uri = $request->getUri()->withUserInfo('');
        $this->view->render(
            $response,
            'index.tpl',
            [
                'config'           => $this->config,
                'class'            => 'index',
                'description'      => _('Easily download videos from Youtube, Dailymotion, Vimeo and other websites.'),
                'domain'           => $uri->getScheme().'://'.$uri->getAuthority(),
                'canonical'        => $this->getCanonicalUrl($request),
                'supportedLocales' => $this->localeManager->getSupportedLocales(),
                'locale'           => $this->localeManager->getLocale(),
            ]
        );

        return $response;
    }
public function index ( Request $ request , Response $ response ) { $ uri = $ request -> getUri ( ) -> withUserInfo ( '' ) ; $ this -> view -> render ( $ response , 'index.tpl' , [ 'config' => $ this -> config , 'class' => 'index' , 'description' => _ ( 'Easily download videos from Youtube, Dailymotion, Vimeo and other websites.' ) , 'domain' => $ uri -> getScheme ( ) . '://' . $ uri -> getAuthority ( ) , 'canonical' => $ this -> getCanonicalUrl ( $ request ) , 'supportedLocales' => $ this -> localeManager -> getSupportedLocales ( ) , 'locale' => $ this -> localeManager -> getLocale ( ) , ] ) ; return $ response ; }
Display index page.

@param Request  $request  PSR-7 request
@param Response $response PSR-7 response

@return Response HTTP response
Display index page .