Skip to content

Introduce a scripts hook #893

Open
@theofidry

Description

@theofidry

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions