digitalkaoz / yuml-php

a php adapater for http://yuml.me
http://digitalkaoz.github.com/yuml-php/
MIT License
32 stars 4 forks source link

Autoload error #3

Closed wesleyvicthor closed 10 years ago

wesleyvicthor commented 11 years ago

I'm getting a fatal error not found class even setting the autoload path.

$php yuml-php.phar classes --methods <project>/src/ <project>/vendor/autoload.php

I'm using symfony2.

digitalkaoz commented 11 years ago

the basepath argument should point to the folder containing your root namespace.

e.g.

to build for a class Foo\Bar\Bazz and this class resists in src/libs/my-custom-lib/src/foo/bar

the path should be src/libs/my-custom-lib/src

wesleyvicthor commented 11 years ago
$php yuml-php.phar classes --methods <project>/src/ <project>/src

I did this but it fails yet.

digitalkaoz commented 11 years ago

can you provide a concrete example?

wesleyvicthor commented 11 years ago

The examples above are exactly as I'm doing. I downloaded the .phar and tried to execute out of the project folder. I've tried inside the folder too.

It worked as a dependency in the project, loaded by composer and executed via vendor/bin/yuml-php.

digitalkaoz commented 11 years ago

are your classes psr-0 compatible?

wesleyvicthor commented 11 years ago

of course it is. it is symfony2.

digitalkaoz commented 10 years ago

grep the new phar or checkout 0.9.0 that should work now...the basepath is not needed anymore