Skip to content

Commit 36c98dc

Browse files
authored
Merge pull request #1 from bookboon/feature/exams
added config vars for exams
2 parents 625c94e + 6eb55d6 commit 36c98dc

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

src/Bookboon/ApiBundle/DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public function getConfigTreeBuilder()
2323
->scalarNode('branding')->end()
2424
->scalarNode('rotation')->end()
2525
->scalarNode('currency')->end()
26+
->scalarNode('client_id')->defaultNull()->end()
27+
->scalarNode('redirect')->defaultNull()->end()
2628
->scalarNode('cache_service')->defaultValue("bookboonapi.cache.redis")->end()
2729
->arrayNode('languages')->isRequired()->prototype('scalar')->end()->end()
2830
->arrayNode('scopes')->isRequired()->prototype('scalar')->end()->end()

src/Bookboon/ApiBundle/Helper/ConfigurationHolder.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,23 @@ public function getCurrency()
7272
return isset($this->_config['currency']) ? $this->_config['currency'] : null;
7373
}
7474

75+
/**
76+
* @return string
77+
*/
78+
public function getClientId()
79+
{
80+
return isset($this->_config['client_id']) ? $this->_config['client_id'] : null;
81+
}
82+
83+
84+
/**
85+
* @return string
86+
*/
87+
public function getRedirectUrl()
88+
{
89+
return isset($this->_config['redirect']) ? $this->_config['redirect'] : null;
90+
}
91+
7592
/**
7693
* @return int
7794
*/

0 commit comments

Comments
 (0)