summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2014-05-26 08:04:29 -0700
committerAaron Parecki <aaron@parecki.com>2014-05-26 08:04:29 -0700
commit9ff63c19ec0810d610f2d5311501ee75c9178a0f (patch)
tree7d985b4d0cc54237c89cc1228b4ab78bb65949eb
parent9ff3e59193a9e300860c58ae1e65a4c55b0d21b0 (diff)
specify dependencies in composer.json instead of loading in index.php
-rw-r--r--composer.json8
-rw-r--r--composer.lock2
-rw-r--r--public/index.php4
3 files changed, 9 insertions, 5 deletions
diff --git a/composer.json b/composer.json
index c771330..196f5a9 100644
--- a/composer.json
+++ b/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"
+ ]
}
}
diff --git a/composer.lock b/composer.lock
index 41b6052..a4e4ad6 100644
--- a/composer.lock
+++ b/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",
diff --git a/public/index.php b/public/index.php
index c83b8dc..45ffc39 100644
--- a/public/index.php
+++ b/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';