Skip to content

Commit

Permalink
Moved PHP dependencies to composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
millinon committed Feb 18, 2017
1 parent 1156cfd commit 4057a62
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -2,3 +2,5 @@ credentials.ini
*.swp *.swp
.hhconfig .hhconfig
node_modules/ node_modules/
composer.phar
composer.lock
9 changes: 9 additions & 0 deletions composer.json
@@ -0,0 +1,9 @@
{
"require": {
"aws/aws-sdk-php": "^3.22",
"facebook/xhp-lib": "2.x"
},
"config": {
"vendor-dir": "www/include/vendor"
}
}
2 changes: 0 additions & 2 deletions www/error.hh
@@ -1,7 +1,5 @@
<?hh <?hh


require_once ('vendor/facebook/xhp-lib/init.php');

require_once ('html/header.hh'); require_once ('html/header.hh');


require_once ('html/footer.hh'); require_once ('html/footer.hh');
Expand Down
1 change: 1 addition & 0 deletions www/include/.gitignore
@@ -0,0 +1 @@
vendor/
2 changes: 0 additions & 2 deletions www/include/aws.hh
@@ -1,7 +1,5 @@
<?hh <?hh


require_once ("aws.phar");

if (!include_once('config/aws_config.hh')) { if (!include_once('config/aws_config.hh')) {
require_once ('config/aws_config.hh.example'); require_once ('config/aws_config.hh.example');
} }
Expand Down
Binary file removed www/include/aws.phar
Binary file not shown.
2 changes: 0 additions & 2 deletions www/index.hh
@@ -1,7 +1,5 @@
<?hh <?hh


require_once ('vendor/facebook/xhp-lib/init.php');

require_once ('html/header.hh'); require_once ('html/header.hh');
require_once ('html/footer.hh'); require_once ('html/footer.hh');


Expand Down
1 change: 1 addition & 0 deletions www/main.hh
Expand Up @@ -3,6 +3,7 @@
set_include_path(get_include_path().PATH_SEPARATOR.__DIR__.'/include'); set_include_path(get_include_path().PATH_SEPARATOR.__DIR__.'/include');


require_once ('helpers.hh'); require_once ('helpers.hh');
require_once ('vendor/autoload.php');


function main(): void { function main(): void {


Expand Down
2 changes: 0 additions & 2 deletions www/result.hh
@@ -1,7 +1,5 @@
<?hh <?hh


require_once ('vendor/facebook/xhp-lib/init.php');

require_once ('html/header.hh'); require_once ('html/header.hh');
require_once ('html/footer.hh'); require_once ('html/footer.hh');


Expand Down
1 change: 0 additions & 1 deletion www/vendor/facebook/xhp-lib
Submodule xhp-lib deleted from 571674

0 comments on commit 4057a62

Please sign in to comment.