Missing Datasource Configuration
assisjeferson opened this issue · 3 comments
assisjeferson commented
I'm trying use this lib, but always return Missing Datasource Configuration
Marlinc commented
Can you give an example of your current setup?
assisjeferson commented
I'm using the readme example
When I call $this->loadModel('Articles', 'Endpoint');
, return MissingDatasourceConfigException
assisjeferson commented
I found the error.
In EndpointRegistry.php
line 72, always try get connection manager app
, I found this code and change the array key for app and the error disappear.
'Webservices' => [
'app' => [
'className' => 'Muffin\Webservice\Connection',
'service' => 'App\Webservice\Driver\Articles',
],
]