Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dbp-relay-core-bundle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Relay API Gateway
dbp-relay-core-bundle
Commits
2f5ecac1
Commit
2f5ecac1
authored
Aug 24, 2021
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Document the bundle config and add it to the README
parent
9774b4c7
No related branches found
No related tags found
No related merge requests found
Pipeline
#55046
passed
Sep 6, 2021
Stage: test
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+18
-3
18 additions, 3 deletions
README.md
src/DependencyInjection/Configuration.php
+17
-9
17 additions, 9 deletions
src/DependencyInjection/Configuration.php
with
35 additions
and
12 deletions
README.md
+
18
−
3
View file @
2f5ecac1
# DBP
API-
Core
-
Bundle
# DBP
Relay
Core
Bundle
[
GitLab
](
https://
packagist.org/packages/dbp/api
-core-bundle
)
|
[
Packagist
](
https://packagist.org/packages/dbp/
api
-core-bundle
)
[
GitLab
](
https://
gitlab.tugraz.at/dbp/relay/dbp-relay
-core-bundle
)
|
[
Packagist
](
https://packagist.org/packages/dbp/
relay
-core-bundle
)
This Symfony bundle contains components required by all DBP bundles.
## Bundle Config
Created via
`./bin/console config:dump-reference DbpRelayCoreBundle | sed '/^$/d'`
```
yaml
# Default configuration for "DbpRelayCoreBundle"
dbp_relay_core
:
# Some string identifying the current build (commit hash)
build_info
:
~
# Example: deadbeef
# Some URL identifying the current build (URL to the commit on some git web interface)
build_info_url
:
~
# Example: 'https://gitlab.example.com/project/-/commit/deadbeef'
# The title text of the API docs page
docs_title
:
'
Relay
API
Gateway'
# The description text of the API docs page (supports markdown)
docs_description
:
'
*part
of
the
[Digital
Blueprint](https://gitlab.tugraz.at/dbp)
project*'
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/DependencyInjection/Configuration.php
+
17
−
9
View file @
2f5ecac1
...
...
@@ -11,15 +11,23 @@ class Configuration implements ConfigurationInterface
{
public
function
getConfigTreeBuilder
()
{
$treeBuilder
=
new
TreeBuilder
(
'dbp_core'
);
$treeBuilder
=
new
TreeBuilder
(
'dbp_
relay_
core'
);
$treeBuilder
->
getRootNode
()
->
children
()
->
scalarNode
(
'build_info'
)
->
end
()
->
scalarNode
(
'build_info_url'
)
->
end
()
->
scalarNode
(
'build_info'
)
->
info
(
'Some string identifying the current build (commit hash)'
)
->
example
(
'deadbeef'
)
->
end
()
->
scalarNode
(
'build_info_url'
)
->
info
(
'Some URL identifying the current build (URL to the commit on some git web interface)'
)
->
example
(
'https://gitlab.example.com/project/-/commit/deadbeef'
)
->
end
()
->
scalarNode
(
'docs_title'
)
->
info
(
'The title text of the API docs page'
)
->
defaultValue
(
'Relay API Gateway'
)
->
end
()
->
scalarNode
(
'docs_description'
)
// This supports markdown
->
scalarNode
(
'docs_description'
)
->
info
(
'The description text of the API docs page (supports markdown)'
)
->
defaultValue
(
'*part of the [Digital Blueprint](https://gitlab.tugraz.at/dbp) project*'
)
->
end
()
->
end
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment