ZF-Commons / ZfcUser

A generic user registration and authentication module for ZF2. Supports Zend\Db and Doctrine2. (Formerly EdpUser)
BSD 3-Clause "New" or "Revised" License
495 stars 343 forks source link

A target service or target alias could not be located #58

Closed giorgio1667 closed 12 years ago

giorgio1667 commented 12 years ago

Now I get a ServiceNotFoundException - seems like it has to do with Zend\ServiceManager\ServiceManager->setAlias('zfcuser_zend_db...', 'Zend\Db\Adapter...') but for the life of me, I can't figure it out.

Have I done something wrong?

thomaslhotta commented 12 years ago

I get the same error since the last update.

EvanDotPro commented 12 years ago

I need to update the docs. See the readme for an updated database config. The filename should now be ./config/autoload/database.local.php (without .config in the name). Also try not copying the module.zfcuser.config.php into./config/autoload/` for now. That file has not been updated for the new service manager stuff yet.

gcw07 commented 12 years ago

I tried deleting the modules config file in the autoload directory and still getting the same error. Also already had the database file named with the .local on it. Just figured there was some small thing that hasn't been updated with the new service manager stuff that is causing this error, but have not been able to figure it out.

EvanDotPro commented 12 years ago

@gcw07, My apologies, I thought the readme had been updated with a recent PR, but it hadn't. I just pushed an update with the updated ./config/autoload/database.local.php format. Please try updating this and let me know if it resolves the issue.

gcw07 commented 12 years ago

Evan, that updated format in the readme fixed the problem. Thank you for the fix.

EvanDotPro commented 12 years ago

Excellent! I'll close this issue then.