protected function setDefaultAssign() { $this->showSetMessages(); if (!$this->app->configIsEmpty('localTest')) { $this->app->getTemplateEngine()->assign(array('localTest' => $this->app->config('localTest'))); } $this->app->getTemplateEngine()->assign(array('isLogin' => false, 'baseUrl' => $this->app->config('baseUrl'), 'themeUrl' => $this->app->getTheme()->getPublicBaseUrl(), 'xmlLang' => $this->app->getXmlLang(), 'language' => $this->app->getLanguage(), 'clientConfig' => $this->app->clientConfig(), 'isAjax' => $this->app->isAjax(), 'params' => $this->params, '_path' => array('route' => $this->getControllerPath(), 'action' => $this->getCurrentAction()))); $this->setAdditionalAssign(); }
public function getObject($path) { $s3config = $this->app->config('amazonS3'); $result = $this->client->getObject(array('Bucket' => $s3config['bucket'], 'Key' => S3Helpers::key($this->app->config('publicDir'), $path))); return $result; }
public function testConfigOverride() { $this->app->getConfigObject()->setProtected('override', '2'); $this->app->getConfigObject()->setPublic('override', '1'); $this->assertEquals('2', $this->app->config('override')); }