Re:What, why and how of PHP Composer
by workinthehead on Thursday June 14, 2018 @04:47PM
(#17315238)
No, it is though, because other package managers are not daemons and they don't have this problem.
Re:What, why and how of PHP Composer
by sieabahlpark on Thursday June 14, 2018 @04:58PM
(#17315288)
Composer is optimized for how php executes which is once per request. If you want to compute namespaces per request that's your choice.
Re:What, why and how of PHP Composer
by tylerjwilk00 on Thursday June 14, 2018 @08:45PM
(#17316611)
If you wish to daemonize it have a file change listener run it when it observes file system changes in the appropriate directory. If that is too much work a quick hack would be:
watch -n 10 composer dumpautoloaf --no-scripts &
Full disclosure: I did not verify this command would work well
Yours is not really a critique of composer, since it's not a daemon or a continuously run script. You run it once and done.