Skip to content

Commit

Permalink
#36 Makes the dependency on Spyc explicit in composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
PerWiklander authored and Philipp15b committed Mar 21, 2018
1 parent 69a0cf1 commit 6f9c630
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 1,166 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
langcache/*
!langcache/README.md
/vendor
7 changes: 5 additions & 2 deletions composer.json
Expand Up @@ -9,12 +9,15 @@
"files": [ "i18n.class.php" ]
},
"description": "Simple i18n class for PHP",
"license": "CC BY-SA 3.0",
"license": "MIT",
"name": "philipp15b/php-i18n",
"homepage": "https://github.com/Philipp15b/php-i18n",
"support": {
"issues": "https://github.com/Philipp15b/php-i18n/issues",
"source": "https://github.com/Philipp15b/php-i18n"
},
"type": "library"
"type": "library",
"require": {
"mustangostang/spyc": "0.6.2"
}
}
68 changes: 68 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions i18n.class.php
Expand Up @@ -293,8 +293,6 @@ protected function load($filename) {
$config = parse_ini_file($filename, true);
break;
case 'yml':
if( ! class_exists('Spyc') )
require_once 'vendor/spyc.php';
$config = spyc_load_file($filename);
break;
case 'json':
Expand Down

0 comments on commit 6f9c630

Please sign in to comment.