Browse Source

specify dependencies in composer.json instead of loading in index.php

pull/5/head
Aaron Parecki 10 years ago
parent
commit
9ff63c19ec
  1. 8
      composer.json
  2. 2
      composer.lock
  3. 4
      public/index.php

8
composer.json

@ -9,5 +9,13 @@
"indieauth/client": "0.1.3",
"mpratt/relativetime": ">=1.0",
"firebase/php-jwt": "dev-master"
},
"autoload": {
"files": [
"lib/Savant.php",
"lib/config.php",
"lib/helpers.php",
"lib/markdown.php"
]
}
}

2
composer.lock

@ -3,7 +3,7 @@
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
"hash": "676692118149f622d7ca2349f775eb8c",
"hash": "3e034e0a6a692d5bbfecfdc95ee69db2",
"packages": [
{
"name": "firebase/php-jwt",

4
public/index.php

@ -1,10 +1,6 @@
<?php
chdir('..');
require 'vendor/autoload.php';
require 'lib/Savant.php';
require 'lib/config.php';
require 'lib/helpers.php';
require 'lib/markdown.php';
// Configure the Savant plugin
\Slim\Extras\Views\Savant::$savantDirectory = 'vendor/saltybeagle/savant3';

Loading…
Cancel
Save