Skip to content

Commit

Permalink
removed support for comment //netteloader
Browse files Browse the repository at this point in the history
It was used by historical Nette, dibi & Texy minifier
  • Loading branch information
dg committed Aug 11, 2019
1 parent a49e8e8 commit 21c3c6a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/RobotLoader/RobotLoader.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 21c3c6a

Please sign in to comment.