Skip to content
This repository was archived by the owner on Feb 18, 2019. It is now read-only.

Commit 2886811

Browse files
committed
Fixed Yaml component calls.
1 parent f4f47a5 commit 2886811

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Bender/Core.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
namespace Bender;
1818

1919
use Symfony\Component\Console as Console;
20-
use Symfony\Component\Yaml\Yaml as Yaml;
20+
use Symfony\Component\Yaml\Parser as Yaml;
2121
use Bender\Core\Logger as Logger;
2222
use Bender\Core\Email as Email;
2323

@@ -32,7 +32,8 @@ public function __construct($name = null) {
3232
}
3333

3434
private function _validateInstaller() {
35-
if (!Yaml::parse('config.yml')) {
35+
$yaml = new Yaml();
36+
if (!$yaml->parse(file_get_contents('config.yml'))) {
3637
//Throw exception message
3738
}
3839
}

Bender/Core/Configuration.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
namespace Bender\Core;
1818

19-
use Symfony\Component\Yaml\Yaml as Yaml;
19+
use Symfony\Component\Yaml\Parser as Yaml;
2020
use \Exception;
2121

2222
class Configuration {
@@ -25,7 +25,8 @@ class Configuration {
2525

2626
private static function _initialize() {
2727
try {
28-
self::$_configuration = Yaml::parse('config.yml');
28+
$yaml = new Yaml();
29+
self::$_configuration = $yaml->parse(file_get_contents('config.yml'));
2930
} catch (Exception $e) {
3031
throw new Exception($e->getMessage());
3132
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The idea behind this application is to provide a minimal structure to create act
88

99
## Requirements
1010

11-
* PHP 5.3.3 or higher.
11+
* PHP 5.4 or higher.
1212
* MySQL 5 or higher.
1313

1414
## Installation instructions

changelog.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Version 0.0.5
22

33
* Upgrade of Symfony components.
44
* Fixed helpers calls.
5+
* Fixed Yaml component calls.
56

67
Version 0.0.4
78

0 commit comments

Comments
 (0)