Closed nicwortel closed 10 years ago
@joostfaassen can you confirm this bug? Or am I doing something wrong?
Hi @nicwortel,
I'm not sure yet... The ..
path works if you use this repo standalone. (so git clone the repo, and run ./bin/openkvk
)
However, if you use this as a package in your own project, then yes, the fix you described is needed (as it's new located in vendor).
I need to find out how other packages deal with this.. will get back to you about this.
In anycase, if you're using this as a library in your own project, you can probably better call the library directly, and not go through bin/openkvk :-)
Ah, ok, that makes sense.
I found this line in Doctrine ORM's CLI:
(@include_once __DIR__ . '/../vendor/autoload.php') || @include_once __DIR__ . '/../../../autoload.php';
I think that could be the solution!
@nicwortel Good find! If you want you can make a pull-request for it, otherwise see if i can add it next week.. thanks!
Merged pr 4
When I tried the command line interface i got the following error:
Changing line 6 to:
fixed it for me.