Lines Matching refs:file
4 * This file is part of Composer.
10 * file that was distributed with this source code.
427 if ($file = $this->findFile($class)) {
428 includeFile($file);
437 * Finds the path to the file where the class is defined.
453 $file = apcu_fetch($this->apcuPrefix.$class, $hit);
455 return $file;
459 $file = $this->findFileWithExtension($class, '.php');
462 if (false === $file && defined('HHVM_VERSION')) {
463 $file = $this->findFileWithExtension($class, '.hh');
467 apcu_add($this->apcuPrefix.$class, $file);
470 if (false === $file) {
475 return $file;
507 if (file_exists($file = $dir . $pathEnd)) {
508 return $file;
517 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
518 return $file;
536 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
537 return $file;
546 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
547 return $file;
552 if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
553 return $file;
565 * @param string $file
569 function includeFile($file)
571 include $file;