msgphp / symfony-demo-app

A Symfony demo application with basic user management
https://github.com/msgphp/msgphp
MIT License
0 stars 0 forks source link

Invalid service "data_collector.security" #63

Closed crabnky closed 6 years ago

crabnky commented 6 years ago

Morning. :)

I just updated from 0.5 to 0.6 and getting this: Invalid service "data_collector.security": method "MsgPhp\User\Infra\Security\DataCollector::__construct()" has no argument named "$factory". Check your service definition. Did I miss something?

crabnky commented 6 years ago

OK, I had this in composer.json:

"msgphp/user-bundle": "^0.5.0"

so the user bundle was still in version 0.5.0. I manually changed this to

"msgphp/user-bundle": "^0.6.0"

and now all is fine. Should the composer update all packages (domain, user, user-bundle) to the latest version?

ro0NL commented 6 years ago

Right, let's switch dependencies to use carets :)

https://github.com/msgphp/msgphp/blob/475249a290c803875dfef5a03a4c3fc54a59d8f9/src/UserBundle/composer.json#L21

for now composer update msgphp/* is the best :)

crabnky commented 6 years ago

This can be closed I think. :) Thanks.

ro0NL commented 6 years ago

See https://github.com/msgphp/msgphp/commit/135b64b113133c6bb4f7ce4ee9bd1898cc935e7e