UseMuffin/Webservice

Incompatible with DebugKit

davidyell opened this issue · 1 comments

What I did
Installed the plugin using composer. Created a new driver App\Lib\SamKnows\Driver\SamKnows.php. Extended it from the AbstractDriver and implemented the method stubs.

Then I added the ConnectionManager::config(Configure::consume('Webservices')); as per the docs over here.

What happened
I got an exception for a missing datasource.
Error: Datasource class Webservices could not be found. Datasource class Webservices could not be found.

⟩ Cake\Datasource\ConnectionRegistry->_throwMissingClassError CORE/src/Core/ObjectRegistry.php, line 87

I believe the problem lays here.
⟩ DebugKit\Panel\SqlLogPanel->initialize ROOT/vendor/cakephp/debug_kit/src/Routing/Filter/DebugBarFilter.php, line 159

What I expected
I expected my application would just be able to render my homepage as normal.

/cc @markstory

Turns out that it is. It was misleading documentation which led me to put my configuration inside the 'Datasources' array, instead of in the 'root' level of the Config array.