public function beforeCompile() { parent::beforeCompile(); $config = $this->createConfig(); $classes = $this->getClasses(); //TODO add config values to service }
public function beforeCompile() { parent::beforeCompile(); $config = $this->createConfig(); $classes = $this->getClasses(); $classes['send']->setArguments([$config['templateDirectory'], $config['templates'], $config['useTranslator'], $config['subjectPrefix']]); }
public function beforeCompile() { parent::beforeCompile(); $config = $this->createConfig(); $merchantConfig = $config['merchant']; $classes = $this->getClasses(); $classes['merchantConfig']->addSetup('$service->isDemo = ?;' . "\n" . '$service->gateUrl = ?;' . "\n" . '$service->merchantId = ?;' . "\n" . '$service->accountId = ?;' . "\n" . '$service->password = ?;' . "\n" . '$service->dataApiPassword = ?;' . "\n" . '$service->webServicesWsdl = ?;' . "\n" . '$service->dataWebServicesWsdl = ?', [$config['demo'], $merchantConfig['gateUrl'], $merchantConfig['merchantId'], $merchantConfig['accountId'], $merchantConfig['password'], $merchantConfig['dataApiPassword'], $merchantConfig['webServicesWsdl'], $merchantConfig['dataWebServicesWsdl']]); }
public function beforeCompile() { parent::beforeCompile(); $config = $this->createConfig(); $classes = $this->getClasses(); $classes['configure']->setArguments([$config['configurationDir']]); $classes['configure']->addTag('run'); }