Skip to content

Commit

Permalink
Removed old YAML parser to support PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bdaley committed Apr 26, 2017
1 parent e3c16e2 commit 78b76c6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 38 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
}
],
"require": {
"symfony/yaml": "^3.2",
"liquid/liquid": "^1.2"
"liquid/liquid": "^1.2",
"mustangostang/spyc": "^0.6.2"
},
"require-dev": {
"phpunit/phpunit": "^6.1"
Expand Down
61 changes: 28 additions & 33 deletions composer.lock

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

5 changes: 2 additions & 3 deletions src/Banner/Banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ class Banner {

public function __construct() {

// Load the defaults
$data = file_get_contents(dirname(__FILE__) . '/../../_config.yml');
$settings = \Symfony\Component\Yaml\Yaml::parse($data);
// Load the defaults. See https://packagist.org/packages/mustangostang/spyc
$settings = spyc_load_file(dirname(__FILE__) . '/../../_config.yml');

$this->name = $settings['name'];
$this->department = $settings['department'];
Expand Down

0 comments on commit 78b76c6

Please sign in to comment.