Skip to content
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

http://0.0.0.0:8080/#booking booking page error #25

Closed
joostshao opened this issue Jan 15, 2016 · 3 comments
Closed

http://0.0.0.0:8080/#booking booking page error #25

joostshao opened this issue Jan 15, 2016 · 3 comments

Comments

@joostshao
Copy link

[Fri Jan 15 10:36:57 2016] 127.0.0.1:50046 [200]: /api/cargos - Uncaught Error: Call to undefined method Psr7Middlewares\Middleware\Payload::associative() in /home/ubt/php-ddd-cargo-sample-master/CargoBackend/src/Container/Application/Action/PayloadParserFactory.php:21
Stack trace:
#0 /home/ubt/php-ddd-cargo-sample-master/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(693): Codeliner\CargoBackend\Container\Application\Action\PayloadParserFactory->__invoke(Object(Zend\ServiceManager\ServiceManager), 'Psr7Middlewares...', NULL)
#1 /home/ubt/php-ddd-cargo-sample-master/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(187): Zend\ServiceManager\ServiceManager->doCreate('Psr7Middlewares...')
#2 /home/ubt/php-ddd-cargo-sample-master/vendor/zendframework/zend-expressive/src/Application.php(581): Zend\ServiceManager\ServiceManager->get('Psr7Middlewares...')
#3 [internal function]: Zend\Expressive\Application->Zend\Expressive\{closure}(Object(Zend\Stratigility\Http\Request), Object(Zend\Stratigility\Http\Response), Object(Zend\Stratigility\Next))
#4  in /home/ubt/php-ddd-cargo-sample-master/CargoBackend/src/Container/Application/Action/PayloadParserFactory.php on line 21
@codeliner
Copy link
Owner

Did you run composer update or composer install like mentioned in the installation docs?
Seems like https://github.com/oscarotero/psr7-middlewares does not follow semver.org. However, the cargo sample ships with a composer.lock file. If you run composer install composer will install the exact versions listed in composer.lock. Can you try it? I try to update the cargo sample at the weekend to work with the latest version of psr-7-middlewares or remove the dependency.

@codeliner
Copy link
Owner

I reopen due to failing travis-ci build. PayloadParserFactory needs to be updated to work with latest changes of https://github.com/oscarotero/psr7-middlewares

@codeliner
Copy link
Owner

build is green again. closing now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants