mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix deprecation: use fqcn in a depedency injection
This commit is contained in:
parent
3260e9e7bd
commit
1d10d89a9b
@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user