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

Add support for importOnce #58

Open
szkrd opened this issue Feb 3, 2013 · 2 comments
Open

Add support for importOnce #58

szkrd opened this issue Feb 3, 2013 · 2 comments

Comments

@szkrd
Copy link

szkrd commented Feb 3, 2013

Or something similar, in the veins of require_once from a popular language ;) If this absolutely is out of the scope, please feel free to close this ticket, otherwise it might be a useful placeholder. Thank you!

@arobson
Copy link
Contributor

arobson commented Feb 4, 2013

@rosamez, I'm not really familiar enough with PHP to understand the use case. How would that differ from the existing import? If you can explain the use case, I'd be happy to discuss it further.

@szkrd
Copy link
Author

szkrd commented Feb 4, 2013

Import once would import a file only once, even if multiple importOnce has been issued. So if "class" B and C both depend on class A, then I still would be able to write
importOnce A in both files, but the file would only be included once.
Is this clear or does it sound silly?

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

2 participants