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

Autoload finder script #12

Closed
17 tasks
theofidry opened this issue Nov 27, 2017 · 0 comments
Closed
17 tasks

Autoload finder script #12

theofidry opened this issue Nov 27, 2017 · 0 comments
Labels

Comments

@theofidry
Copy link
Member

theofidry commented Nov 27, 2017

For each php script, the right autoload file needs to be found and depends in all of the following cases:

  • Locally in the project
  • As a dependency via Composer
  • Globally, as a dependency via composer
  • Handle the special case where the composer.json found is not an actual file but a symlink (likely to cause issues with realpath()
  • Case where the ext phar is not installed
  • Case where the autoload file is different, e.g. src/autoload.php instead of vendor/autoload.php
  • In a PHAR

Update the following projects (among others) accordingly:

@theofidry theofidry added the RFC label Nov 27, 2017
@theofidry theofidry added this to Best practices in Optimal PHAR Nov 27, 2017
@theofidry theofidry removed this from Best practices in Optimal PHAR May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant