Browse Source

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

pull/5/head
Aaron Parecki 10 years ago
parent
commit
9ff63c19ec
3 changed files with 9 additions and 5 deletions
  1. +8
    -0
      composer.json
  2. +1
    -1
      composer.lock
  3. +0
    -4
      public/index.php

+ 8
- 0
composer.json View File

@ -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"
]
}
}

+ 1
- 1
composer.lock View File

@ -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",

+ 0
- 4
public/index.php View File

@ -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