CodeExplorer StoreApi example
$me->
set('slim.request',
$slim->
request());
$me->
set('slim.response',
$slim->
response());
return $slim;
};
$container['http-client'
] =
function D
) { return new CurlClient();
};
$container['store.api'
] =
function D
) use ($me) { return new StoreApi( $me->
get('http-client'
),
$me->
getParameter('storeapi.endpoint'
) );
};
$container['plugin.check'
] =
function D
) use ($me) { return new PluginCheck( $me->
get('store.api'
),
$me->
get('db'
),
$me->
get('shopware.version'
) );
};