digitick / php-sepa-xml

* THIS PROJECT IS NO LONGER MAINTAINED* SEPA file generator in PHP
107 stars 63 forks source link

PHP Fatal error: Class 'TransferFileFacadeFactory' not found #38

Open pasket opened 10 years ago

pasket commented 10 years ago

Hi, I'm new in php an composer. It'd be great if someone could help with this error. I made:

$ git clone git://github.com/digitick/php-sepa-xml

$ cd php-sepa-xml

$ composer.phar install Loading composer repositories with package information Installing dependencies (including require-dev) Nothing to install or update Generating autoload files

$ vim example.php <?php require_once 'vendor/autoload.php'; $directDebit = TransferFileFacadeFactory::createDirectDebit('test123', 'Me'); ... ... ... ?>

$ php example.php PHP Fatal error: Class 'TransferFileFacadeFactory' not found in /var/www/php-sepa-xml/example.php on line 6

ch3ric commented 10 years ago

You must add this line before calling TransferFileFacadeFactory: use Digitick\Sepa\TransferFile\Factory\TransferFileFacadeFactory;

See PHP namespaces: http://fr2.php.net/manual/en/language.namespaces.php

This is not an issue.

pasket commented 10 years ago

Thank you.