Lines Matching refs:this

62         if (!empty($this->prefixesPsr0)) {
63 return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
71 return $this->prefixDirsPsr4;
76 return $this->fallbackDirsPsr0;
81 return $this->fallbackDirsPsr4;
86 return $this->classMap;
94 if ($this->classMap) {
95 $this->classMap = array_merge($this->classMap, $classMap);
97 $this->classMap = $classMap;
113 $this->fallbackDirsPsr0 = array_merge(
115 $this->fallbackDirsPsr0
118 $this->fallbackDirsPsr0 = array_merge(
119 $this->fallbackDirsPsr0,
128 if (!isset($this->prefixesPsr0[$first][$prefix])) {
129 $this->prefixesPsr0[$first][$prefix] = (array) $paths;
134 $this->prefixesPsr0[$first][$prefix] = array_merge(
136 $this->prefixesPsr0[$first][$prefix]
139 $this->prefixesPsr0[$first][$prefix] = array_merge(
140 $this->prefixesPsr0[$first][$prefix],
161 $this->fallbackDirsPsr4 = array_merge(
163 $this->fallbackDirsPsr4
166 $this->fallbackDirsPsr4 = array_merge(
167 $this->fallbackDirsPsr4,
171 } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
177 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
178 $this->prefixDirsPsr4[$prefix] = (array) $paths;
181 $this->prefixDirsPsr4[$prefix] = array_merge(
183 $this->prefixDirsPsr4[$prefix]
187 $this->prefixDirsPsr4[$prefix] = array_merge(
188 $this->prefixDirsPsr4[$prefix],
204 $this->fallbackDirsPsr0 = (array) $paths;
206 $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
222 $this->fallbackDirsPsr4 = (array) $paths;
228 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
229 $this->prefixDirsPsr4[$prefix] = (array) $paths;
240 $this->useIncludePath = $useIncludePath;
251 return $this->useIncludePath;
262 $this->classMapAuthoritative = $classMapAuthoritative;
272 return $this->classMapAuthoritative;
282 …$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VAL…
292 return $this->apcuPrefix;
302 spl_autoload_register(array($this, 'loadClass'), true, $prepend);
310 spl_autoload_unregister(array($this, 'loadClass'));
321 if ($file = $this->findFile($class)) {
338 if (isset($this->classMap[$class])) {
339 return $this->classMap[$class];
341 if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
344 if (null !== $this->apcuPrefix) {
345 $file = apcu_fetch($this->apcuPrefix.$class, $hit);
351 $file = $this->findFileWithExtension($class, '.php');
355 $file = $this->findFileWithExtension($class, '.hh');
358 if (null !== $this->apcuPrefix) {
359 apcu_add($this->apcuPrefix.$class, $file);
364 $this->missingClasses[$class] = true;
376 if (isset($this->prefixLengthsPsr4[$first])) {
381 if (isset($this->prefixDirsPsr4[$search])) {
383 foreach ($this->prefixDirsPsr4[$search] as $dir) {
393 foreach ($this->fallbackDirsPsr4 as $dir) {
409 if (isset($this->prefixesPsr0[$first])) {
410 foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
422 foreach ($this->fallbackDirsPsr0 as $dir) {
429 if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {