Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/class-loader/ClassCollectionLoader.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 7a779792577d |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
9 * file that was distributed with this source code. | 9 * file that was distributed with this source code. |
10 */ | 10 */ |
11 | 11 |
12 namespace Symfony\Component\ClassLoader; | 12 namespace Symfony\Component\ClassLoader; |
13 | 13 |
14 if (\PHP_VERSION_ID >= 70000) { | |
15 @trigger_error('The '.__NAMESPACE__.'\ClassCollectionLoader class is deprecated since Symfony 3.3 and will be removed in 4.0.', E_USER_DEPRECATED); | |
16 } | |
17 | |
14 /** | 18 /** |
15 * ClassCollectionLoader. | 19 * ClassCollectionLoader. |
16 * | 20 * |
17 * @author Fabien Potencier <fabien@symfony.com> | 21 * @author Fabien Potencier <fabien@symfony.com> |
22 * | |
23 * @deprecated since version 3.3, to be removed in 4.0. | |
18 */ | 24 */ |
19 class ClassCollectionLoader | 25 class ClassCollectionLoader |
20 { | 26 { |
21 private static $loaded; | 27 private static $loaded; |
22 private static $seen; | 28 private static $seen; |
237 } elseif (T_START_HEREDOC === $token[0]) { | 243 } elseif (T_START_HEREDOC === $token[0]) { |
238 $output .= self::compressCode($rawChunk).$token[1]; | 244 $output .= self::compressCode($rawChunk).$token[1]; |
239 do { | 245 do { |
240 $token = $tokens[++$i]; | 246 $token = $tokens[++$i]; |
241 $output .= isset($token[1]) && 'b"' !== $token ? $token[1] : $token; | 247 $output .= isset($token[1]) && 'b"' !== $token ? $token[1] : $token; |
242 } while ($token[0] !== T_END_HEREDOC); | 248 } while (T_END_HEREDOC !== $token[0]); |
243 $output .= "\n"; | 249 $output .= "\n"; |
244 $rawChunk = ''; | 250 $rawChunk = ''; |
245 } elseif (T_CONSTANT_ENCAPSED_STRING === $token[0]) { | 251 } elseif (T_CONSTANT_ENCAPSED_STRING === $token[0]) { |
246 $output .= self::compressCode($rawChunk).$token[1]; | 252 $output .= self::compressCode($rawChunk).$token[1]; |
247 $rawChunk = ''; | 253 $rawChunk = ''; |
315 throw new \RuntimeException(sprintf('Failed to write cache file "%s".', $file)); | 321 throw new \RuntimeException(sprintf('Failed to write cache file "%s".', $file)); |
316 } | 322 } |
317 | 323 |
318 /** | 324 /** |
319 * Gets an ordered array of passed classes including all their dependencies. | 325 * Gets an ordered array of passed classes including all their dependencies. |
320 * | |
321 * @param array $classes | |
322 * | 326 * |
323 * @return \ReflectionClass[] An array of sorted \ReflectionClass instances (dependencies added if needed) | 327 * @return \ReflectionClass[] An array of sorted \ReflectionClass instances (dependencies added if needed) |
324 * | 328 * |
325 * @throws \InvalidArgumentException When a class can't be loaded | 329 * @throws \InvalidArgumentException When a class can't be loaded |
326 */ | 330 */ |