Lines Matching defs:file
4 * This file is part of Composer.
10 * file that was distributed with this source code.
425 if ($file = $this->findFile($class)) {
427 $includeFile($file);
436 * Finds the path to the file where the class is defined.
452 $file = apcu_fetch($this->apcuPrefix.$class, $hit);
454 return $file;
458 $file = $this->findFileWithExtension($class, '.php');
461 if (false === $file && defined('HHVM_VERSION')) {
462 $file = $this->findFileWithExtension($class, '.hh');
466 apcu_add($this->apcuPrefix.$class, $file);
469 if (false === $file) {
474 return $file;
506 if (file_exists($file = $dir . $pathEnd)) {
507 return $file;
516 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
517 return $file;
535 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
536 return $file;
545 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
546 return $file;
551 if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
552 return $file;
572 * @param string $file
575 self::$includeFile = \Closure::bind(static function($file) {
576 include $file;