Method | Description | |
---|---|---|
__construct ( Interop\Container\ContainerInterface $container ) | FrontController constructor. | |
error ( Slim\Http\Request $request, Slim\Http\Response $response, Exception $exception ) : Slim\Http\Response | Display an error page. | |
extractors ( Slim\Http\Request $request, Slim\Http\Response $response ) : void | Display a list of extractors. | |
index ( Slim\Http\Request $request, Slim\Http\Response $response ) : void | Display index page. | |
json ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response | Output JSON info about the video. | |
redirect ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response | Redirect to video file. | |
video ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response | Dislay information about the video. |
public __construct ( Interop\Container\ContainerInterface $container ) | ||
$container | Interop\Container\ContainerInterface | Slim dependency container |
public error ( Slim\Http\Request $request, Slim\Http\Response $response, Exception $exception ) : Slim\Http\Response | ||
$request | Slim\Http\Request | PSR-7 request |
$response | Slim\Http\Response | PSR-7 response |
$exception | Exception | Error to display |
return | Slim\Http\Response | HTTP response |
public extractors ( Slim\Http\Request $request, Slim\Http\Response $response ) : void | ||
$request | Slim\Http\Request | PSR-7 request |
$response | Slim\Http\Response | PSR-7 response |
return | void |
public json ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response | ||
$request | Slim\Http\Request | PSR-7 request |
$response | Slim\Http\Response | PSR-7 response |
return | Slim\Http\Response | HTTP response |
public redirect ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response | ||
$request | Slim\Http\Request | PSR-7 request |
$response | Slim\Http\Response | PSR-7 response |
return | Slim\Http\Response | HTTP response |
public video ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response | ||
$request | Slim\Http\Request | PSR-7 request |
$response | Slim\Http\Response | PSR-7 response |
return | Slim\Http\Response | HTTP response |