Skip to content

Commit

Permalink
Merge pull request #41 from creative-commoners/pulls/4.0/php53-support
Browse files Browse the repository at this point in the history
FIX Use a symfony/yaml that is compatible with PHP 5.3.3
  • Loading branch information
robbieaverill authored Jun 28, 2017
2 parents 333e928 + f836d6c commit 3244720
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"require": {
"apigen/apigen": "2.8.x-dev",
"symfony/yaml": "^3.3"
"symfony/yaml": "~2.6.0"
},
"repositories": [
{
Expand Down
29 changes: 12 additions & 17 deletions composer.lock

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

3 changes: 0 additions & 3 deletions htdocs/search/lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

require_once __DIR__ . '/../../vendor/autoload.php';

// 2017-06-27: Cannot run composer dump-autoload on SSP
require_once __DIR__ . '/../../src/Lookup.php';

$lookup = new SilverStripe\ApiDocs\Lookup($_GET);

$lookup->setVersionMap(array(
Expand Down
2 changes: 1 addition & 1 deletion src/Lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function getUpgraderMap()
foreach (glob($mapFilePaths) as $mapFile) {
try {
$mapping = (array) Yaml::parse(file_get_contents($mapFile));
} catch (\Symfony\Component\Yaml\ParseException $ex) {
} catch (\Symfony\Component\Yaml\Exception\ParseException $ex) {
// Fail gracefully here
}
if (!empty($mapping['mappings'])) {
Expand Down

0 comments on commit 3244720

Please sign in to comment.