[pkg-php-pear] How to replace "require vendor/autoload.php" in deb package

David Prévot david at tilapin.org
Fri Feb 11 14:46:54 GMT 2022


Hi,

Le 11/02/2022 à 10:28, Fab a écrit :

> If a project uses:
> 
> require_once vendor/autoload.php
> 
> to autoload the classes defined in composer.json, how should that be changed
[…]
> Should it be changed to as many such lines as needed?
> 
> require_once /usr/share/php/pkg1/autoload.php

Please, rather use “require_once 'pkg1/autoload.php';”, or let 
phabtpl(1) do it for you. /usr/share/php/ is expected to be in the PATH.

> Or is there a way to make it single-lined like this?
> require_once /usr/share/php/Composer/autoload.php
> (I guess we can't install pkg1, pkg2... into /usr/share/php/Composer)

There should be no need to depend on the composer package.

Regards

David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-php-pear/attachments/20220211/9f0f3b1e/attachment.sig>


More information about the pkg-php-pear mailing list