Skip to content

Commit

Permalink
use composer autoload instead of fatfree
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Feb 13, 2016
1 parent 479a732 commit 9270133
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cliupdate.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

chdir(__DIR__);

require(__DIR__.'/vendor/autoload.php');
require(__DIR__.'/common.php');

$f3->set('FTRSS_DATA_DIR', __dir__.'/data/fulltextrss');
Expand Down
2 changes: 1 addition & 1 deletion common.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

$f3->set('DEBUG',0);
$f3->set('version','2.15-SNAPSHOT');
$f3->set('AUTOLOAD',__dir__.'/;vendor/others/');
$f3->set('AUTOLOAD', false);
$f3->set('cache',__dir__.'/data/cache');
$f3->set('BASEDIR',__dir__);
$f3->set('LOCALES',__dir__.'/public/lang/');
Expand Down
10 changes: 9 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,13 @@
"name": "SSilence",
"email": "[email protected]"
}
]
],
"autoload": {
"psr-4": {
"controllers\\": "controllers/",
"daos\\": "daos/",
"helpers\\": "helpers/",
"spouts\\": "spouts/"
}
}
}

0 comments on commit 9270133

Please sign in to comment.