This repository was archived by the owner on Feb 18, 2019. It is now read-only.
File tree 4 files changed +8
-5
lines changed
4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 17
17
namespace Bender ;
18
18
19
19
use Symfony \Component \Console as Console ;
20
- use Symfony \Component \Yaml \Yaml as Yaml ;
20
+ use Symfony \Component \Yaml \Parser as Yaml ;
21
21
use Bender \Core \Logger as Logger ;
22
22
use Bender \Core \Email as Email ;
23
23
@@ -32,7 +32,8 @@ public function __construct($name = null) {
32
32
}
33
33
34
34
private function _validateInstaller () {
35
- if (!Yaml::parse ('config.yml ' )) {
35
+ $ yaml = new Yaml ();
36
+ if (!$ yaml ->parse (file_get_contents ('config.yml ' ))) {
36
37
//Throw exception message
37
38
}
38
39
}
Original file line number Diff line number Diff line change 16
16
17
17
namespace Bender \Core ;
18
18
19
- use Symfony \Component \Yaml \Yaml as Yaml ;
19
+ use Symfony \Component \Yaml \Parser as Yaml ;
20
20
use \Exception ;
21
21
22
22
class Configuration {
@@ -25,7 +25,8 @@ class Configuration {
25
25
26
26
private static function _initialize () {
27
27
try {
28
- self ::$ _configuration = Yaml::parse ('config.yml ' );
28
+ $ yaml = new Yaml ();
29
+ self ::$ _configuration = $ yaml ->parse (file_get_contents ('config.yml ' ));
29
30
} catch (Exception $ e ) {
30
31
throw new Exception ($ e ->getMessage ());
31
32
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ The idea behind this application is to provide a minimal structure to create act
8
8
9
9
## Requirements
10
10
11
- * PHP 5.3.3 or higher.
11
+ * PHP 5.4 or higher.
12
12
* MySQL 5 or higher.
13
13
14
14
## Installation instructions
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ Version 0.0.5
2
2
3
3
* Upgrade of Symfony components.
4
4
* Fixed helpers calls.
5
+ * Fixed Yaml component calls.
5
6
6
7
Version 0.0.4
7
8
You can’t perform that action at this time.
0 commit comments