protected isPathAutoloadEntryPoint ( string $path ) : boolean | ||
$path | string | |
return | boolean |
protected function isPathAutoloadEntryPoint($path)
{
return array_reduce($this->getFlattenedAutoloadConfiguration(), function ($isAutoloadEntryPoint, $configuration) use($path) {
$normalizedAutoloadPath = $this->normalizeAutoloadPath($configuration['mappingType'], $configuration['namespace'], $configuration['classPath']);
if ($path === $normalizedAutoloadPath) {
return true;
}
return $isAutoloadEntryPoint;
}, false);
}