1
0
mirror of https://github.com/danog/class-finder.git synced 2025-01-23 06:11:26 +01:00

Expose variable for PHP 5.3

This commit is contained in:
Hayden Pierce 2018-09-03 16:34:14 -05:00
parent 4641b3968c
commit 46a1565cda

View File

@ -69,11 +69,12 @@ class PSR4NamespaceFactory
}
$self = $this;
$directories = array_map(function($directory) use ($self) {
$appConfig = $this->appConfig;
$directories = array_map(function($directory) use ($self, $appConfig) {
if ($self->isAbsolutePath($directory)) {
return $directory;
} else {
return $self->appConfig->getAppRoot() . $directory;
return $appConfig->getAppRoot() . $directory;
}
}, $directories);