-
Notifications
You must be signed in to change notification settings - Fork 147
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
New, autoloader-centric file structure #348
Comments
@Kharhamel I understand it may hurt your feelings. |
Asked how to do it: rectorphp/rector#7131 |
I am not sure I understand the link with rector but yes, that new structure looks good, i would definitly like a PR to do that, especially if it solves issues like #253. However I am thinking really hard about generating several directories of functions, to be loaded depending of the php version of the client. Do you think we could do something like this:
And then the autoload config in composer would reference a single entrypoint file that would redirect us to the correct folder depending on the php version? |
That is done by keeping one git branch for each PHP version. |
That Rector issue is about automatically combining many .php files into one |
Aka. for machines only
src
directory as per PSR-4functions.php
filegenerated/functionsList.php
Resulting Composer config.
All other directories could be excluded from distribution.
Would you support a PR that modifies the generator?
The text was updated successfully, but these errors were encountered: