summaryrefslogtreecommitdiff
path: root/app/common.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-04 21:33:05 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-04 21:33:05 -0500
commit135b921db75da5995eab7e36393ecd4d2b0bc66f (patch)
tree46efc60fcf1f9d5c57ab1fb9418c2acfbda0698a /app/common.php
parent850645dd6b22f5b495d1680e0b49540e0ebf9bd3 (diff)
Switch to composer
Diffstat (limited to 'app/common.php')
-rw-r--r--app/common.php19
1 files changed, 2 insertions, 17 deletions
diff --git a/app/common.php b/app/common.php
index 1ace3d81..613d4501 100644
--- a/app/common.php
+++ b/app/common.php
@@ -2,17 +2,7 @@
// Common file between cli and web interface
-require __DIR__.'/Core/Loader.php';
-require __DIR__.'/helpers.php';
-require __DIR__.'/functions.php';
-
-use Core\Loader;
-use Core\Registry;
-
-// Include password_compat for PHP < 5.5
-if (version_compare(PHP_VERSION, '5.5.0', '<')) {
- require __DIR__.'/../vendor/password.php';
-}
+require 'vendor/autoload.php';
// Include custom config file
if (file_exists('config.php')) {
@@ -21,12 +11,7 @@ if (file_exists('config.php')) {
require __DIR__.'/constants.php';
-$loader = new Loader;
-$loader->setPath('app');
-$loader->setPath('vendor');
-$loader->execute();
-
-$registry = new Registry;
+$registry = new Core\Registry;
$registry->db = setup_db();
$registry->event = setup_events();
$registry->mailer = function() { return setup_mailer(); };