Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 515 Bytes

v.0.1

Include the connector service in the own service

services:
...
...
    example.ducksboard:
        class: SFM\DucksboardBundle\Adapter\Widget
        arguments: [@sfm.ducksboard.connector]  
        calls:
            - [setApiKey, [%ducksboard_api%]]

The push and pull methods dont return data. The correct way to obtain the response is this:

   ...
   $widgetActualData = $widget->getArrayResponse();          
   //or
   $widgetActualData = $widget->getRawResponse();