[pkg-php-pear] usage of phpab when no autoload in composer.json

Fab Stz fabstz-it at yahoo.fr
Wed Feb 23 08:40:57 GMT 2022


Hello,

I have a package (kalkun) that uses composer.json to load dependencies.
However, in itself, the package has no classes to put in the 
spl_autoload_register of the autoload file (composer.json doesn't have an 
autoload section).

Hence, I'm not able to run phpab on the template. It fails with this error:

$ phpab --output autoload.php \
    --template debian/autoload.php.tpl \
    composer.json                         
phpab %development% - Copyright (C) 2009 - 2022 by Arne Blankerts and 
Contributors


Error while processing request:
 - No units were found - process aborted.



How should I use phpab to have only the "require_once" statements at the 
begining and have nothing in spl_autoload_register ? I tried with the "-s" 
(static) option but it doesn't seem to be the correct result.

Regards
Fab






More information about the pkg-php-pear mailing list