Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chill-project
Chill-Report
Commits
1d10d89a
Commit
1d10d89a
authored
Apr 09, 2018
by
Julien Minet
Browse files
fix deprecation: use fqcn in a depedency injection
parent
3260e9e7
Pipeline
#46788
failed with stages
in 1 minute and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
DependencyInjection/ChillReportExtension.php
View file @
1d10d89a
...
...
@@ -8,6 +8,7 @@ use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use
Symfony\Component\DependencyInjection\Loader
;
use
Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface
;
use
Chill\MainBundle\DependencyInjection\MissingBundleException
;
use
Chill\CustomFieldsBundle\Form\Type\LinkedCustomFieldsType
;
/**
* This is the class that loads and manages your bundle configuration
...
...
@@ -30,7 +31,7 @@ class ChillReportExtension extends Extension implements PrependExtensionInterfac
/**
* Declare the entity Report, as a customizable entity (can add custom fields)
*
*
* @param ContainerBuilder $container
*/
public
function
declareReportAsCustomizable
(
ContainerBuilder
$container
)
...
...
@@ -41,15 +42,15 @@ class ChillReportExtension extends Extension implements PrependExtensionInterfac
}
$container
->
prependExtensionConfig
(
'chill_custom_fields'
,
array
(
'customizables_entities'
=>
array
(
'customizables_entities'
=>
array
(
array
(
'class'
=>
'Chill\ReportBundle\Entity\Report'
,
'class'
=>
'Chill\ReportBundle\Entity\Report'
,
'name'
=>
'ReportEntity'
,
'options'
=>
array
(
'summary_fields'
=>
array
(
'form_type'
=>
'c
ustom
_f
ields
_group_linked_custom_fields'
,
'form_options'
=>
'form_type'
=>
LinkedC
ustom
F
ields
Type
::
class
,
'form_options'
=>
[
'multiple'
=>
true
,
'expanded'
=>
false
...
...
@@ -60,10 +61,10 @@ class ChillReportExtension extends Extension implements PrependExtensionInterfac
)
);
}
/**
* declare routes from report bundle
*
*
* @param ContainerBuilder $container
*/
private
function
declareRouting
(
ContainerBuilder
$container
)
...
...
@@ -76,7 +77,7 @@ class ChillReportExtension extends Extension implements PrependExtensionInterfac
)
));
}
protected
function
prependRoleHierarchy
(
ContainerBuilder
$container
)
{
$container
->
prependExtensionConfig
(
'security'
,
array
(
...
...
@@ -89,7 +90,7 @@ class ChillReportExtension extends Extension implements PrependExtensionInterfac
/**
* {@inheritdoc}
*
*
* @param ContainerBuilder $container
*/
public
function
prepend
(
ContainerBuilder
$container
)
...
...
@@ -98,5 +99,5 @@ class ChillReportExtension extends Extension implements PrependExtensionInterfac
$this
->
declareRouting
(
$container
);
$this
->
prependRoleHierarchy
(
$container
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment