Skip to content
Permalink
Browse files

removed support for comment //netteloader

It was used by historical Nette, dibi & Texy minifier
  • Loading branch information...
dg committed Aug 11, 2019
1 parent a49e8e8 commit 21c3c6ac918698986037f557635943a02fa047c6
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/RobotLoader/RobotLoader.php
@@ -313,14 +313,6 @@ private function scanPhp(string $file): array
$level = $minLevel = 0;
$classes = [];
if (preg_match('#//nette' . 'loader=(\S*)#', $code, $matches)) {
foreach (explode(',', $matches[1]) as $name) {
$classes[] = $name;
}
return $classes;
}
try {
$tokens = token_get_all($code, TOKEN_PARSE);
} catch (\ParseError $e) {

0 comments on commit 21c3c6a

Please sign in to comment.
You can’t perform that action at this time.