-
Hello, I have been using the library for some time now and would like to take this opportunity to thank you for the great work. Since a short time we use a private composer repository to manage our models. They are provided with PHP attributes there. When I include this library in our API project as a dependency, some types can no longer be mapped. We're using a pretty normal setup with $factory = new SchemaFactory($cache, $container);
$factory->addTypeNamespace('Namespace\\From\\ComposerLib\\In\\VendorDir');
return $factory->createSchema(); As far as I understand it, it could be due to Thanks a lot in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @ilmDitsch. I'm not aware of any limitations here. You need to be sure that lib is autoloaded properly with composer. Also, I don't believe the double |
Beta Was this translation helpful? Give feedback.
@ilmDitsch well, I guess that's pretty clear :) I can only assume this is being done for performance reasons. Being that namespaces are explicitly defined, I don't see any reason not to support the vendor directory as well, if you'd like to submit a PR on this.