Commit 1d10d89a authored by Julien Minet's avatar 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
......@@ -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' => 'custom_fields_group_linked_custom_fields',
'form_options' =>
'form_type' => LinkedCustomFieldsType::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);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment