Lines Matching refs:file
4 * This file is part of Composer.
10 * file that was distributed with this source code.
345 if ($file = $this->findFile($class)) {
346 includeFile($file);
353 * Finds the path to the file where the class is defined.
369 $file = apcu_fetch($this->apcuPrefix.$class, $hit);
371 return $file;
375 $file = $this->findFileWithExtension($class, '.php');
378 if (false === $file && defined('HHVM_VERSION')) {
379 $file = $this->findFileWithExtension($class, '.hh');
383 apcu_add($this->apcuPrefix.$class, $file);
386 if (false === $file) {
391 return $file;
418 if (file_exists($file = $dir . $pathEnd)) {
419 return $file;
428 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
429 return $file;
447 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
448 return $file;
457 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
458 return $file;
463 if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
464 return $file;
476 function includeFile($file)
478 include $file;