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:
parent
4641b3968c
commit
46a1565cda
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user