
Untitled
By: a guest on
Jun 20th, 2012 | syntax:
None | size: 0.48 KB | hits: 9 | expires: Never
$app->before(function() use ($app) {
// ....
$ccdconfig = new \Adicom\DataProvider\CCDConfigProvider();
$app['account']->setToken($ccdconfig->getToken($app['market']));
$app['account']->setSiteId($ccdconfig->getSiteId($app['market']));
});
$app->register(new Adicom\Bundle\AccountServiceBundle\CCDAccountServiceProvider(), array(
'ccd.wsurl' => $app['ccdws.url']
));
$app->mount('/account', new Adicom\Bundle\AccountServiceBundle\AccountControllerProvider());