UseMuffin/Webservice

Missing Datasource Configuration

assisjeferson opened this issue · 3 comments

I'm trying use this lib, but always return Missing Datasource Configuration

Can you give an example of your current setup?

I'm using the readme example

When I call $this->loadModel('Articles', 'Endpoint');, return MissingDatasourceConfigException

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',
            ],
        ]