FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
guide-bundle/src/DependencyInjection/Configuration.php at master · abandroid/guide-bundle · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Mar 24, 2021. It is now read-only.
abandroid
/
guide-bundle
Public archive
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
3
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
guide-bundle
/
src
/
DependencyInjection
/
Configuration.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (37 loc) · 1.23 KB
Breadcrumbs
guide-bundle
/
src
/
DependencyInjection
/
Configuration.php
Copy path
File metadata and controls
45 lines (37 loc) · 1.23 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
declare
(strict_types=
1
);
/*
* (c) Jeroen van den Enden <info@endroid.nl>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace
Endroid
\
GuideBundle
\
DependencyInjection
;
use
Symfony
\
Component
\
Config
\
Definition
\
Builder
\
TreeBuilder
;
use
Symfony
\
Component
\
Config
\
Definition
\
ConfigurationInterface
;
class
Configuration
implements
ConfigurationInterface
{
public
function
getConfigTreeBuilder
():
TreeBuilder
{
$
treeBuilder
=
new
TreeBuilder
(
'
endroid_guide
'
);
if
(
method_exists
(
$
treeBuilder
,
'
root
'
)) {
$
rootNode
=
$
treeBuilder
->
root
(
'
endroid_guide
'
);
}
else
{
$
rootNode
=
$
treeBuilder
->
getRootNode
();
}
$
rootNode
->
children
()
->
arrayNode
(
'
shows
'
)
->
prototype
(
'
array
'
)
->
children
()
->
scalarNode
(
'
label
'
)->
isRequired
()->
end
()
->
scalarNode
(
'
type
'
)->
isRequired
()->
end
()
->
scalarNode
(
'
url
'
)->
end
()
->
end
()
->
end
()
->
end
()
->
end
()
;
return
$
treeBuilder
;
}
}
Back
|
FazBrowse Home
|
New Git URL