Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support autoloading for relative namespaces #1

Open
caipre opened this issue Apr 16, 2015 · 0 comments
Open

Support autoloading for relative namespaces #1

caipre opened this issue Apr 16, 2015 · 0 comments

Comments

@caipre
Copy link
Contributor

caipre commented Apr 16, 2015

At present, hussar will not add require_once statements for classes referenced relative to the file's namespace. That is, if we never see the fully-qualified namespace to a class, it will be absent from the .class-index cache and inline greps, resulting in false-positive UnknownClass errors.

We can support this by including filenames in the grep and looking for a namespace declaration within locate_class_files.

@caipre caipre changed the title Support autoloading for relative namespacing Support autoloading for relative namespaces Apr 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant