Skip to content

Commit

Permalink
Merge branch 'ericpoe-composerImprovements'
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-wiltshire committed Oct 18, 2016
2 parents 929b2e7 + 9f2c8a6 commit f4132ac
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ An example would be:
```
JOINDIN-445 #close Fixed.
```

## PHP Version

The current PHP version for joind.in is PHP 5.6.
13 changes: 9 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
"User": ["app/src/", "tests/"]
}
},
"preferred-install": "dist",
"config": {
"platform": {
"php": "5.6.26"
},
"preferred-install": "dist"
},
"minimum-stability": "stable",
"require": {
"predis/predis": "~0.8",
Expand All @@ -24,8 +29,8 @@
"symfony/validator": "~2.5",
"symfony/security-csrf": "~2.5",
"symfony/twig-bridge": "~2.5",
"org_heigl/daterange": "~1.1",
"guzzlehttp/guzzle": "^6.2.1",
"monolog/monolog": "^1.21"
"org_heigl/daterange": "~1.1",
"guzzlehttp/guzzle": "^6.2.1",
"monolog/monolog": "^1.21"
}
}
9 changes: 6 additions & 3 deletions composer.lock

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

12 changes: 7 additions & 5 deletions vendor/composer/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class ClassLoader

private $useIncludePath = false;
private $classMap = array();

private $classMapAuthoritative = false;
private $missingClasses = array();

public function getPrefixes()
{
Expand Down Expand Up @@ -322,20 +322,20 @@ public function findFile($class)
if (isset($this->classMap[$class])) {
return $this->classMap[$class];
}
if ($this->classMapAuthoritative) {
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
return false;
}

$file = $this->findFileWithExtension($class, '.php');

// Search for Hack files if we are running on HHVM
if ($file === null && defined('HHVM_VERSION')) {
if (false === $file && defined('HHVM_VERSION')) {
$file = $this->findFileWithExtension($class, '.hh');
}

if ($file === null) {
if (false === $file) {
// Remember that this class does not exist.
return $this->classMap[$class] = false;
$this->missingClasses[$class] = true;
}

return $file;
Expand Down Expand Up @@ -399,6 +399,8 @@ private function findFileWithExtension($class, $ext)
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
return $file;
}

return false;
}
}

Expand Down

0 comments on commit f4132ac

Please sign in to comment.