noscheme on all URL

This commit is contained in:
Pierre Rudloff 2016-04-06 13:19:27 +02:00
parent 4a2a795131
commit 7eef219128
8 changed files with 184 additions and 23 deletions

View file

@ -13,6 +13,7 @@
* @link http://rudloff.pro
* */
require_once __DIR__.'/vendor/autoload.php';
require_once __DIR__.'/vendor/rudloff/smarty-plugin-noscheme/modifier.noscheme.php';
use Alltube\VideoDownload;
$app = new \Slim\App();
@ -21,6 +22,8 @@ $container['view'] = function ($c) {
$view = new \Slim\Views\Smarty(__DIR__.'/templates/');
$view->addSlimPlugins($c['router'], $c['request']->getUri());
$view->registerPlugin('modifier', 'noscheme', 'Smarty_Modifier_noscheme');
return $view;
};