Skip to content
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.

Autoloading issues #13

Closed
nunofgs opened this issue Oct 18, 2013 · 4 comments
Closed

Autoloading issues #13

nunofgs opened this issue Oct 18, 2013 · 4 comments

Comments

@nunofgs
Copy link

nunofgs commented Oct 18, 2013

This new condition here makes hoa re-import classes using the ~ pattern, effectively breaking autoloading for other PHP projects (like symfony1).

I'm not entirely sure what it is doing, but commenting this out restores the original behaviour. Could you please take a look at it?

@hoaproject
Copy link
Collaborator

Hello :-),

Can you give me a usecase?

The commit solved the following scenario: some people used
“short”-classname instead of FQCN. So the autoloader try to fallback to
a FQCN.

Thank you for reporting the issue!

@nunofgs
Copy link
Author

nunofgs commented Oct 21, 2013

Hello,

Sure. I've uploaded a small project here. This project contains an empty Symfony 1.4 project and the Hoa/Core library.

Try running a "./symfony cc" on the root folder. You'll see an error "Class 'sfContext' not found". Then comment out lines #334 and #335 of Consistency.php and run the command again.

@hoaproject
Copy link
Collaborator

Hello :-),

This patch fixes your issue: 436f30f. If you confirm, please, close the issue. Thanks!

@nunofgs
Copy link
Author

nunofgs commented Oct 21, 2013

Yes, it fixes the issue. Thank you very much.

@nunofgs nunofgs closed this as completed Oct 21, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant