Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[compiler] implement composer classmap autoloading
`autoload.classmap` is another popular method of classes autoloading in composer. Implementing this feature increases the number of composer packages that can be used by KPHP code. Classmap works like this: for a given files list (dirs or regular files), collect all files with `.inc` and `.php` extension recursively and build autoloading maps for them. Unlike PSR4, classmap doesn't require any conventions. A file can have multiple classes, its name could be anything, namespaces can be arbitrary as well. It's hard to implement this feature in KPHP without actually parsing the php files. As a compromise, we're scanning the classmap folders and require all files found during the composer autoload file inclusion. Fixes #49
- Loading branch information
Showing
15 changed files
with
465 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.