Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 from mayeco/fix_new_dir_structure
Browse files Browse the repository at this point in the history
Fix Symfony 3.0 new directory structure
  • Loading branch information
Maurits van der Schee committed Dec 16, 2014
2 parents 5b48287 + 9403af2 commit dec269b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DataCollector/AutomaticUpdateDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ public function collect(Request $request, Response $response, \Exception $except
$installed = json_decode(file_get_contents($rootDir.'/composer.lock'));
$require = json_decode(file_get_contents($rootDir.'/composer.json'));
$require = (array)$require->require;
$lastUpdate = filemtime($rootDir.'/app/SymfonyRequirements.php');
if (file_exists($rootDir.'/app/SymfonyRequirements.php')) {
$lastUpdate = filemtime($rootDir.'/app/SymfonyRequirements.php');
} elseif (file_exists($rootDir.'/var/SymfonyRequirements.php')) {
$lastUpdate = filemtime($rootDir.'/var/SymfonyRequirements.php');
}
$packages = array();
$packageCount=0;
$unstablePackageCount=0;
Expand Down

0 comments on commit dec269b

Please sign in to comment.