Lines Matching refs:file
4 * This file is part of Composer.
10 * file that was distributed with this source code.
431 if ($file = $this->findFile($class)) {
433 $includeFile($file);
442 * Finds the path to the file where the class is defined.
458 $file = apcu_fetch($this->apcuPrefix.$class, $hit);
460 return $file;
464 $file = $this->findFileWithExtension($class, '.php');
467 if (false === $file && defined('HHVM_VERSION')) {
468 $file = $this->findFileWithExtension($class, '.hh');
472 apcu_add($this->apcuPrefix.$class, $file);
475 if (false === $file) {
480 return $file;
512 if (file_exists($file = $dir . $pathEnd)) {
513 return $file;
522 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
523 return $file;
541 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
542 return $file;
551 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
552 return $file;
557 if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
558 return $file;
578 * @param string $file
581 self::$includeFile = \Closure::bind(static function($file) {
582 include $file;