Permalink
Browse files

Converting to Slim

  • Loading branch information...
beryllium committed May 13, 2018
1 parent a8bed79 commit 4a5b90e132ec980197c0b0ec10349f515bad19b0
Showing with 152 additions and 483 deletions.
  1. +5 −3 bootstrap.php
  2. +3 −3 composer.json
  3. +128 −458 composer.lock
  4. +16 −19 web/index.php
@@ -2,14 +2,16 @@
require __DIR__ . '/vendor/autoload.php';
$app = new Silex\Application();
$app = new \Slim\App;
$container = $app->getContainer();
$app['debug'] = false; // set to true if problems arise
$container['debug'] = false;
$container['displayErrorDetails'] = false;
if (file_exists(__DIR__ . '/config.php')) {
$config = include __DIR__ . '/config.php';
}
$app['deref.config'] = is_array($config) ? $config : [];
$container['deref.config'] = is_array($config) ? $config : [];
return $app;
@@ -2,13 +2,13 @@
"name": "beryllium/deref",
"description": "Dereference pesky shortened URLs to the full domain/URL",
"require": {
"php": ">=5.4.0",
"php": ">=7.0.0",
"ext-curl": "*",
"silex/silex": "^2.2",
"robloach/component-installer": "^0.2.3",
"components/angular.js": "^1.3",
"components/jquery": "^3.2",
"components/bootstrap": "^3.3"
"components/bootstrap": "^3.3",
"slim/slim": "^3.10"
},
"license": "MIT",
"authors": [
Oops, something went wrong.

0 comments on commit 4a5b90e

Please sign in to comment.