Lines Matching refs:this

111         $this->vendorDir = $vendorDir;
120 if (!empty($this->prefixesPsr0)) {
121 return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
133 return $this->prefixDirsPsr4;
142 return $this->fallbackDirsPsr0;
151 return $this->fallbackDirsPsr4;
160 return $this->classMap;
171 if ($this->classMap) {
172 $this->classMap = array_merge($this->classMap, $classMap);
174 $this->classMap = $classMap;
192 $this->fallbackDirsPsr0 = array_merge(
194 $this->fallbackDirsPsr0
197 $this->fallbackDirsPsr0 = array_merge(
198 $this->fallbackDirsPsr0,
207 if (!isset($this->prefixesPsr0[$first][$prefix])) {
208 $this->prefixesPsr0[$first][$prefix] = (array) $paths;
213 $this->prefixesPsr0[$first][$prefix] = array_merge(
215 $this->prefixesPsr0[$first][$prefix]
218 $this->prefixesPsr0[$first][$prefix] = array_merge(
219 $this->prefixesPsr0[$first][$prefix],
242 $this->fallbackDirsPsr4 = array_merge(
244 $this->fallbackDirsPsr4
247 $this->fallbackDirsPsr4 = array_merge(
248 $this->fallbackDirsPsr4,
252 } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
258 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
259 $this->prefixDirsPsr4[$prefix] = (array) $paths;
262 $this->prefixDirsPsr4[$prefix] = array_merge(
264 $this->prefixDirsPsr4[$prefix]
268 $this->prefixDirsPsr4[$prefix] = array_merge(
269 $this->prefixDirsPsr4[$prefix],
287 $this->fallbackDirsPsr0 = (array) $paths;
289 $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
307 $this->fallbackDirsPsr4 = (array) $paths;
313 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
314 $this->prefixDirsPsr4[$prefix] = (array) $paths;
327 $this->useIncludePath = $useIncludePath;
338 return $this->useIncludePath;
351 $this->classMapAuthoritative = $classMapAuthoritative;
361 return $this->classMapAuthoritative;
373 …$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VAL…
383 return $this->apcuPrefix;
395 spl_autoload_register(array($this, 'loadClass'), true, $prepend);
397 if (null === $this->vendorDir) {
402 self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
404 unset(self::$registeredLoaders[$this->vendorDir]);
405 self::$registeredLoaders[$this->vendorDir] = $this;
416 spl_autoload_unregister(array($this, 'loadClass'));
418 if (null !== $this->vendorDir) {
419 unset(self::$registeredLoaders[$this->vendorDir]);
431 if ($file = $this->findFile($class)) {
450 if (isset($this->classMap[$class])) {
451 return $this->classMap[$class];
453 if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
456 if (null !== $this->apcuPrefix) {
457 $file = apcu_fetch($this->apcuPrefix.$class, $hit);
463 $file = $this->findFileWithExtension($class, '.php');
467 $file = $this->findFileWithExtension($class, '.hh');
470 if (null !== $this->apcuPrefix) {
471 apcu_add($this->apcuPrefix.$class, $file);
476 $this->missingClasses[$class] = true;
503 if (isset($this->prefixLengthsPsr4[$first])) {
508 if (isset($this->prefixDirsPsr4[$search])) {
510 foreach ($this->prefixDirsPsr4[$search] as $dir) {
520 foreach ($this->fallbackDirsPsr4 as $dir) {
536 if (isset($this->prefixesPsr0[$first])) {
537 foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
549 foreach ($this->fallbackDirsPsr0 as $dir) {
556 if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {