-
-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slim RequestFactory not working #586
Comments
Those docs are for how to use the legacy http plug interfaces. We now use PSR-17 and PSR-18. |
@GrahamCampbell I think slim/psr7 is psr-17 compliant https://github.com/slimphp/Slim-Psr7/blob/master/composer.json#L46-L49 I also tryied writing the part from the psr-17 docs into my controller |
Maybe this is an issue with the discovery package. |
You can force the factories by providing them to the $builder = new Gitlab\HttpClient\Builder(
null, // PSR-18 client autodetect
new Slim\Psr7\Factory\RequestFactory(),
new Slim\Psr7\Factory\StreamFactory(),
new Slim\Psr7\Factory\UriFactory()
);
$client = new Gitlab\Client($builder); Or more fancy using DI-containers. |
Replaced by php-http/discovery#190. |
Hello I am trying to get GitlabPHP running in my slim project.
The docs at https://docs.php-http.org/en/latest/httplug/users.html said it should work with slim too.
Part of my composer.json:
Error Message:
It tests for
Http\Factory\Slim\RequestFactory
.I have checked my vendor dir. I only have
Slim\Psr7\Factory\RequestFactory
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: