Composer classmap and loading files with non-standard extensions

前端 未结 1 1475
北海茫月
北海茫月 2021-01-14 17:27

When loading files through the composer classmap functionality is it possible to load PHP files that have non-standard extensions such as myFileName.s

相关标签:
1条回答
  • 2021-01-14 17:44

    Composer will currently include files with the following extensions:

    .php .inc .hh

    The last one is for HHVM stuff.

    Relevant lines from the class map generator here:

    https://github.com/composer/composer/blob/master/src/Composer/Autoload/ClassMapGenerator.php#L62 https://github.com/composer/composer/blob/master/src/Composer/Autoload/ClassMapGenerator.php#L76

    So, looks like you'll need a custom map generator...

    0 讨论(0)
提交回复
热议问题