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

Introduce a scripts hook #893

Open
theofidry opened this issue Mar 1, 2023 · 0 comments · May be fixed by #1257
Open

Introduce a scripts hook #893

theofidry opened this issue Mar 1, 2023 · 0 comments · May be fixed by #1257
Milestone

Comments

@theofidry
Copy link
Member

A few notes from conversations with ondrej;

script idea:

"dump-autoload": [
    "@composer config autoloader-suffix @prefix", <- `@composer` points to whatever Composer binary Box uses
                                                  <- `@prefix` points to the PHP-Scoper prefix; would throw na error if none found
    "@composer config autoloader-suffix @{prefix}CheckSum", <- Example where you use `@prefix` concatenated with another string
    "@composer config platform.php --unset",
    "@composer dump-autoload --classmap-authoritative", <- just rolling your own dump-autoload
    "@box-dump-autoload", <- using the Box default dump-autoload
],

PHPStan changes the composer.json in multiple places:

@theofidry theofidry added this to the Box5 milestone Nov 27, 2023
@theofidry theofidry changed the title PHPStan notes Introduce a scripts hook Nov 27, 2023
@theofidry theofidry linked a pull request Dec 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant