Closed Nyholm closed 8 years ago
Slim factories need to be in puli.json.
For future reference. This is how I did. (Ping @tuupola)
$ php puli.phar bind -f Http\\Message\\MessageFactory\\SlimMessageFactory Http\\Message\\MessageFactory $ php puli.phar bind -f Http\\Message\\MessageFactory\\SlimMessageFactory Http\\Message\\ResponseFactory $ php puli.phar bind -f Http\\Message\\MessageFactory\\SlimMessageFactory Http\\Message\\RequestFactory $ php puli.phar bind -f Http\\Message\\StreamFactory\\SlimStreamFactory Http\\Message\\StreamFactory $ php puli.phar bind -f Http\\Message\\UriFactory\\SlimUriFactory Http\\Message\\UriFactory
Am I correct that for discovery to work without Puli Slim factories should also be added here?
https://github.com/php-http/discovery/blob/master/src/Strategy/CommonClassesStrategy.php
Yes, you are.
Slim factories need to be in puli.json.
For future reference. This is how I did. (Ping @tuupola)