Skip to content

Commit

Permalink
Remove Autoloader class
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jan 25, 2018
1 parent c2d3eca commit 6a273c9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 67 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Version 4.0.0-dev
* In formatting-preserving pretty printer:
* Improved formatting of elements inserted into multi-line arrays.

### Removed

* The `Autoloader` class has been removed. It is not required to use the Composer autoloader.

Version 4.0.0-alpha3 (2017-12-26)
---------------------------------

Expand Down
3 changes: 2 additions & 1 deletion UPGRADE-4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ Because HHVM does not support PHP 7, HHVM is no longer supported.
* The XML serializer has been removed. As such, the classes `Serializer\XML`, and
`Unserializer\XML`, as well as the interfaces `Serializer` and `Unserializer` no longer exist.
* The `BuilderAbstract` class has been removed. It's functionality is moved into `BuilderHelpers`.
However, this is an internal class and should not be used directly.
However, this is an internal class and should not be used directly.
* The `Autoloader` class has been removed in favor of relying on the Composer autoloader.
40 changes: 0 additions & 40 deletions lib/PhpParser/Autoloader.php

This file was deleted.

6 changes: 0 additions & 6 deletions lib/bootstrap.php

This file was deleted.

18 changes: 0 additions & 18 deletions test/PhpParser/AutoloaderTest.php

This file was deleted.

3 changes: 1 addition & 2 deletions test_old/run.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ function showHelp($error) {
showHelp('Test type must be one of: PHP5, PHP7 or Symfony');
}

require_once __DIR__ . '/../lib/PhpParser/Autoloader.php';
PhpParser\Autoloader::register();
require_once __DIR__ . '/../vendor/autoload.php';

$lexer = new PhpParser\Lexer\Emulative(['usedAttributes' => [
'comments', 'startLine', 'endLine', 'startTokenPos', 'endTokenPos',
Expand Down

0 comments on commit 6a273c9

Please sign in to comment.