-
- {% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {'context': accompanyingCourse, 'with_display': 'row', 'entity': calendar } %}
+ {% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {
+ 'context': accompanyingCourse,
+ 'with_display': 'row',
+ 'entity': calendar
+ } %}
{% if calendar.comment.comment is not empty %}
@@ -123,4 +126,4 @@
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/Bundle/ChillCalendarBundle/Tests/Controller/CalendarControllerTest.php b/src/Bundle/ChillCalendarBundle/Tests/Controller/CalendarControllerTest.php
index 06e0cd5a9..813bb87bd 100644
--- a/src/Bundle/ChillCalendarBundle/Tests/Controller/CalendarControllerTest.php
+++ b/src/Bundle/ChillCalendarBundle/Tests/Controller/CalendarControllerTest.php
@@ -26,7 +26,7 @@ final class CalendarControllerTest extends WebTestCase
/**
* Setup before each test method (see phpunit doc).
*/
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
$this->client = self::createClient([], [
diff --git a/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php b/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php
index 633f70f05..a20157ce0 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php
@@ -25,6 +25,7 @@ use Symfony\Component\Console\Question\Question;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Symfony\Component\Yaml\Exception\ParseException;
use Symfony\Component\Yaml\Parser;
+
use function count;
/**
diff --git a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldChoice.php b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldChoice.php
index 718f5dbb7..b57fdf4db 100644
--- a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldChoice.php
+++ b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldChoice.php
@@ -23,6 +23,7 @@ use Symfony\Bridge\Twig\TwigEngine;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
+
use function array_key_exists;
use function count;
use function in_array;
diff --git a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldDate.php b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldDate.php
index 1afa9982a..38a31491d 100644
--- a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldDate.php
+++ b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldDate.php
@@ -135,7 +135,7 @@ class CustomFieldDate extends AbstractCustomField
return null;
}
- return $date->format('Y-m-d');
+ return $date->format('Y-m-d');
default:
$template = 'ChillCustomFieldsBundle:CustomFieldsRendering:date.'
diff --git a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldLongChoice.php b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldLongChoice.php
index 311df8fad..20b1a9ec7 100644
--- a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldLongChoice.php
+++ b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldLongChoice.php
@@ -21,6 +21,7 @@ use LogicException;
use Symfony\Bridge\Twig\TwigEngine;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
+
use function get_class;
use function gettype;
use function is_object;
diff --git a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldNumber.php b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldNumber.php
index c7ec62ba2..cd42ca751 100644
--- a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldNumber.php
+++ b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldNumber.php
@@ -18,7 +18,6 @@ use Symfony\Component\Form\Extension\Core\Type\IntegerType;
use Symfony\Component\Form\Extension\Core\Type\NumberType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
-
use Symfony\Component\Validator\Constraints\GreaterThanOrEqual;
use Symfony\Component\Validator\Constraints\LessThanOrEqual;
diff --git a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldText.php b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldText.php
index 62325b797..849f851fd 100644
--- a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldText.php
+++ b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldText.php
@@ -20,6 +20,7 @@ use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\RequestStack;
+
use function array_key_exists;
class CustomFieldText extends AbstractCustomField
@@ -65,8 +66,10 @@ class CustomFieldText extends AbstractCustomField
$attrArray = [];
- if (array_key_exists(self::MULTIPLE_CF_INLINE, $options)
- && $options[self::MULTIPLE_CF_INLINE]) {
+ if (
+ array_key_exists(self::MULTIPLE_CF_INLINE, $options)
+ && $options[self::MULTIPLE_CF_INLINE]
+ ) {
$attrArray['class'] = 'multiple-cf-inline';
}
diff --git a/src/Bundle/ChillCustomFieldsBundle/Form/CustomFieldsGroupType.php b/src/Bundle/ChillCustomFieldsBundle/Form/CustomFieldsGroupType.php
index f9d773f72..7dff8e119 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Form/CustomFieldsGroupType.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Form/CustomFieldsGroupType.php
@@ -20,6 +20,7 @@ use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Translation\TranslatorInterface;
+
use function count;
class CustomFieldsGroupType extends AbstractType
diff --git a/src/Bundle/ChillCustomFieldsBundle/Form/DataTransformer/CustomFieldsGroupToIdTransformer.php b/src/Bundle/ChillCustomFieldsBundle/Form/DataTransformer/CustomFieldsGroupToIdTransformer.php
index 937aaaa9b..fc6dfd75f 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Form/DataTransformer/CustomFieldsGroupToIdTransformer.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Form/DataTransformer/CustomFieldsGroupToIdTransformer.php
@@ -15,6 +15,7 @@ use Chill\CustomFieldsBundle\Entity\CustomFieldsGroup;
use Doctrine\Persistence\ObjectManager;
use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\TransformationFailedException;
+
use function gettype;
class CustomFieldsGroupToIdTransformer implements DataTransformerInterface
diff --git a/src/Bundle/ChillCustomFieldsBundle/Form/DataTransformer/JsonCustomFieldToArrayTransformer.php b/src/Bundle/ChillCustomFieldsBundle/Form/DataTransformer/JsonCustomFieldToArrayTransformer.php
index 095c6f463..250418581 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Form/DataTransformer/JsonCustomFieldToArrayTransformer.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Form/DataTransformer/JsonCustomFieldToArrayTransformer.php
@@ -14,7 +14,9 @@ namespace Chill\CustomFieldsBundle\Form\DataTransformer;
use Chill\CustomFieldsBundle\Entity\CustomField;
use Doctrine\Persistence\ObjectManager;
use Symfony\Component\Form\DataTransformerInterface;
+
use function array_key_exists;
+
use const JSON_THROW_ON_ERROR;
class JsonCustomFieldToArrayTransformer implements DataTransformerInterface
@@ -33,7 +35,9 @@ class JsonCustomFieldToArrayTransformer implements DataTransformerInterface
// @TODO: in the array_map callback, CustomField::getLabel() does not exist. What do we do here?
$customFieldsLablels = array_map(
- static function ($e) { return $e->getLabel(); },
+ static function ($e) {
+ return $e->getLabel();
+ },
$customFields
);
diff --git a/src/Bundle/ChillCustomFieldsBundle/Form/Extension/PostTextExtension.php b/src/Bundle/ChillCustomFieldsBundle/Form/Extension/PostTextExtension.php
index 6c35097e5..42428c21b 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Form/Extension/PostTextExtension.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Form/Extension/PostTextExtension.php
@@ -15,6 +15,7 @@ use Symfony\Component\Form\AbstractTypeExtension;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolver;
+
use function array_key_exists;
/**
diff --git a/src/Bundle/ChillCustomFieldsBundle/Form/Type/ChoicesListType.php b/src/Bundle/ChillCustomFieldsBundle/Form/Type/ChoicesListType.php
index b2d50b422..77a479728 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Form/Type/ChoicesListType.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Form/Type/ChoicesListType.php
@@ -17,7 +17,6 @@ use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormEvent;
-
use Symfony\Component\Form\FormEvents;
class ChoicesListType extends AbstractType
diff --git a/src/Bundle/ChillCustomFieldsBundle/Resources/test/Fixtures/App/web/app_dev.php b/src/Bundle/ChillCustomFieldsBundle/Resources/test/Fixtures/App/web/app_dev.php
index 914d09ffd..e171c8521 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Resources/test/Fixtures/App/web/app_dev.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Resources/test/Fixtures/App/web/app_dev.php
@@ -18,7 +18,8 @@ use Symfony\Component\HttpFoundation\Request;
// This check prevents access to debug front controllers that are deployed by accident to production servers.
// Feel free to remove this, extend it, or make something more sophisticated.
-if (isset($_SERVER['HTTP_CLIENT_IP'])
+if (
+ isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !(in_array($_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1'], true) || \PHP_SAPI === 'cli-server')
) {
diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsChoiceTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsChoiceTest.php
index 58b15f0c3..db27ec921 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsChoiceTest.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsChoiceTest.php
@@ -37,7 +37,7 @@ final class CustomFieldsChoiceTest extends KernelTestCase
*/
private $cfProvider;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
@@ -46,7 +46,7 @@ final class CustomFieldsChoiceTest extends KernelTestCase
$this->cfChoice = $this->cfProvider->getCustomFieldByType('choice');
}
- public function tearDown()
+ protected function tearDown(): void
{
parent::tearDown();
}
diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsNumberTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsNumberTest.php
index d65577d91..60381f567 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsNumberTest.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsNumberTest.php
@@ -34,7 +34,7 @@ final class CustomFieldsNumberTest extends \Symfony\Bundle\FrameworkBundle\Test\
*/
private $formBuilder;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsTextTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsTextTest.php
index 8d84f072e..50bf689d4 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsTextTest.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsTextTest.php
@@ -28,7 +28,7 @@ final class CustomFieldsTextTest extends WebTestCase
*/
private $customFieldProvider;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
$this->customFieldProvider = self::$kernel->getContainer()
diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextIntegerExtensionTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextIntegerExtensionTest.php
index 8ce7b0cef..1c8b8e143 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextIntegerExtensionTest.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextIntegerExtensionTest.php
@@ -27,7 +27,7 @@ final class PostTextIntegerExtensionTest extends KernelTestCase
*/
private $formBuilder;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextNumberExtensionTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextNumberExtensionTest.php
index a16980be0..8469b6210 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextNumberExtensionTest.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextNumberExtensionTest.php
@@ -27,7 +27,7 @@ final class PostTextNumberExtensionTest extends KernelTestCase
*/
private $formBuilder;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/Service/CustomFieldsHelperTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/Service/CustomFieldsHelperTest.php
index 594e55e34..b08ca05c0 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Tests/Service/CustomFieldsHelperTest.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Tests/Service/CustomFieldsHelperTest.php
@@ -33,7 +33,7 @@ final class CustomFieldsHelperTest extends KernelTestCase
*/
private $randomCFText;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldRenderingTwigTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldRenderingTwigTest.php
index 425e79537..ab43936eb 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldRenderingTwigTest.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldRenderingTwigTest.php
@@ -34,7 +34,7 @@ final class CustomFieldRenderingTwigTest extends KernelTestCase
*/
private $cfRendering;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
$this->cfRendering = self::$kernel->getContainer()
diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldsGroupRenderingTwigTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldsGroupRenderingTwigTest.php
index aa52e3efd..b950d562e 100644
--- a/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldsGroupRenderingTwigTest.php
+++ b/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldsGroupRenderingTwigTest.php
@@ -36,7 +36,7 @@ final class CustomFieldsGroupRenderingTwigTest extends KernelTestCase
*/
private $cfRendering;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
$this->cfRendering = self::$kernel->getContainer()
diff --git a/src/Bundle/ChillDocGeneratorBundle/Context/Exception/UnexpectedTypeException.php b/src/Bundle/ChillDocGeneratorBundle/Context/Exception/UnexpectedTypeException.php
index 617ec537a..f992e674d 100644
--- a/src/Bundle/ChillDocGeneratorBundle/Context/Exception/UnexpectedTypeException.php
+++ b/src/Bundle/ChillDocGeneratorBundle/Context/Exception/UnexpectedTypeException.php
@@ -12,6 +12,7 @@ declare(strict_types=1);
namespace Chill\DocGeneratorBundle\Context\Exception;
use LogicException;
+
use function get_class;
use function gettype;
use function is_object;
diff --git a/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php b/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php
index de71daa6f..66d475d89 100644
--- a/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php
+++ b/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php
@@ -28,12 +28,10 @@ use GuzzleHttp\Client;
use GuzzleHttp\Exception\TransferException;
use Psr\Log\LoggerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
-
use Symfony\Component\Form\Extension\Core\Type\FileType;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
-
// TODO à mettre dans services
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\StreamedResponse;
@@ -42,7 +40,6 @@ use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\Routing\Annotation\Route;
-
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
use Symfony\Contracts\HttpClient\HttpClientInterface;
@@ -206,8 +203,10 @@ final class DocGeneratorTemplateController extends AbstractController
$contextGenerationData = [];
- if ($context instanceof DocGeneratorContextWithPublicFormInterface
- && $context->hasPublicForm($template, $entity) || $isTest) {
+ if (
+ $context instanceof DocGeneratorContextWithPublicFormInterface
+ && $context->hasPublicForm($template, $entity) || $isTest
+ ) {
if ($context instanceof DocGeneratorContextWithPublicFormInterface) {
$builder = $this->createFormBuilder(
array_merge(
diff --git a/src/Bundle/ChillDocGeneratorBundle/Form/DocGeneratorTemplateType.php b/src/Bundle/ChillDocGeneratorBundle/Form/DocGeneratorTemplateType.php
index 4275cf53e..ff516d3de 100644
--- a/src/Bundle/ChillDocGeneratorBundle/Form/DocGeneratorTemplateType.php
+++ b/src/Bundle/ChillDocGeneratorBundle/Form/DocGeneratorTemplateType.php
@@ -54,8 +54,10 @@ class DocGeneratorTemplateType extends AbstractType
'required' => true,
]);
- if ($context instanceof DocGeneratorContextWithAdminFormInterface
- && $context->hasAdminForm()) {
+ if (
+ $context instanceof DocGeneratorContextWithAdminFormInterface
+ && $context->hasAdminForm()
+ ) {
$sub = $builder
->create('options', null, ['compound' => true])
->addModelTransformer(new CallbackTransformer(
diff --git a/src/Bundle/ChillDocGeneratorBundle/GeneratorDriver/RelatorioDriver.php b/src/Bundle/ChillDocGeneratorBundle/GeneratorDriver/RelatorioDriver.php
index 7a3e4ac69..7101e562d 100644
--- a/src/Bundle/ChillDocGeneratorBundle/GeneratorDriver/RelatorioDriver.php
+++ b/src/Bundle/ChillDocGeneratorBundle/GeneratorDriver/RelatorioDriver.php
@@ -46,6 +46,7 @@ class RelatorioDriver implements DriverInterface
'template' => new DataPart($template, $templateName ?? uniqid('template_'), $resourceType),
];
$form = new FormDataPart($formFields);
+ dump(json_encode($data));
try {
$response = $this->relatorioClient->request('POST', $this->url, [
diff --git a/src/Bundle/ChillDocGeneratorBundle/Menu/AdminMenuBuilder.php b/src/Bundle/ChillDocGeneratorBundle/Menu/AdminMenuBuilder.php
index 39b21ed0e..d88f0c122 100644
--- a/src/Bundle/ChillDocGeneratorBundle/Menu/AdminMenuBuilder.php
+++ b/src/Bundle/ChillDocGeneratorBundle/Menu/AdminMenuBuilder.php
@@ -15,6 +15,7 @@ use Chill\MainBundle\Routing\LocalMenuBuilderInterface;
use Knp\Menu\MenuItem;
use Symfony\Component\Security\Core\Security;
use Symfony\Contracts\Translation\TranslatorInterface;
+
use function in_array;
class AdminMenuBuilder implements LocalMenuBuilderInterface
diff --git a/src/Bundle/ChillDocGeneratorBundle/Serializer/Encoder/DocGenEncoder.php b/src/Bundle/ChillDocGeneratorBundle/Serializer/Encoder/DocGenEncoder.php
index 2de46228a..b8fca5119 100644
--- a/src/Bundle/ChillDocGeneratorBundle/Serializer/Encoder/DocGenEncoder.php
+++ b/src/Bundle/ChillDocGeneratorBundle/Serializer/Encoder/DocGenEncoder.php
@@ -11,13 +11,15 @@ declare(strict_types=1);
namespace Chill\DocGeneratorBundle\Serializer\Encoder;
+use Symfony\Component\Serializer\Encoder\EncoderInterface;
+
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
use function array_keys;
use function is_array;
-class DocGenEncoder implements \Symfony\Component\Serializer\Encoder\EncoderInterface
+class DocGenEncoder implements EncoderInterface
{
- public function encode($data, string $format, array $context = [])
+ public function encode($data, $format, array $context = [])
{
if (!$this->isAssociative($data)) {
throw new UnexpectedValueException('Only associative arrays are allowed; lists are not allowed');
@@ -29,7 +31,7 @@ class DocGenEncoder implements \Symfony\Component\Serializer\Encoder\EncoderInte
return $result;
}
- public function supportsEncoding(string $format)
+ public function supportsEncoding($format)
{
return 'docgen' === $format;
}
diff --git a/src/Bundle/ChillDocGeneratorBundle/Serializer/Helper/NormalizeNullValueHelper.php b/src/Bundle/ChillDocGeneratorBundle/Serializer/Helper/NormalizeNullValueHelper.php
index f6be7bd5a..91e8e6170 100644
--- a/src/Bundle/ChillDocGeneratorBundle/Serializer/Helper/NormalizeNullValueHelper.php
+++ b/src/Bundle/ChillDocGeneratorBundle/Serializer/Helper/NormalizeNullValueHelper.php
@@ -12,6 +12,7 @@ declare(strict_types=1);
namespace Chill\DocGeneratorBundle\Serializer\Helper;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
+
use function array_merge;
class NormalizeNullValueHelper
diff --git a/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/CollectionDocGenNormalizer.php b/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/CollectionDocGenNormalizer.php
index 35c683138..55774dd83 100644
--- a/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/CollectionDocGenNormalizer.php
+++ b/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/CollectionDocGenNormalizer.php
@@ -26,10 +26,11 @@ class CollectionDocGenNormalizer implements ContextAwareNormalizerInterface, Nor
/**
* @param Collection $object
+ * @param null|string $format
*
* @return array|ArrayObject|bool|float|int|string|void|null
*/
- public function normalize($object, ?string $format = null, array $context = [])
+ public function normalize($object, $format = null, array $context = [])
{
$data = [];
@@ -44,7 +45,7 @@ class CollectionDocGenNormalizer implements ContextAwareNormalizerInterface, Nor
return $data;
}
- public function supportsNormalization($data, ?string $format = null, array $context = [])
+ public function supportsNormalization($data, $format = null, array $context = [])
{
if ('docgen' !== $format) {
return false;
diff --git a/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php b/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php
index 35c4729bb..fc4b4beb9 100644
--- a/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php
+++ b/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php
@@ -26,6 +26,7 @@ use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
+
use function array_filter;
use function array_key_exists;
use function array_merge;
@@ -54,7 +55,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte
$this->translatableStringHelper = $translatableStringHelper;
}
- public function normalize($object, ?string $format = null, array $context = [])
+ public function normalize($object, $format = null, array $context = [])
{
$classMetadataKey = $object ?? $context['docgen:expects'] ?? null;
@@ -65,7 +66,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte
if (!$this->classMetadataFactory->hasMetadataFor($classMetadataKey)) {
throw new LogicException(sprintf(
'This object does not have metadata: %s. Add groups on this entity to allow to serialize with the format %s and groups %s',
- is_object($object) ? get_class($object) : '(todo' /*$context['docgen:expects'],*/ ,
+ is_object($object) ? get_class($object) : '(todo' /*$context['docgen:expects'],*/,
$format,
implode(', ', ($context['groups'] ?? []))
));
@@ -95,7 +96,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte
return $this->normalizeObject($object, $format, $context, $expectedGroups, $metadata, $attributes);
}
- public function supportsNormalization($data, ?string $format = null): bool
+ public function supportsNormalization($data, $format = null): bool
{
return 'docgen' === $format && (is_object($data) || null === $data);
}
diff --git a/src/Bundle/ChillDocGeneratorBundle/Service/Context/BaseContextData.php b/src/Bundle/ChillDocGeneratorBundle/Service/Context/BaseContextData.php
new file mode 100644
index 000000000..0e2da164f
--- /dev/null
+++ b/src/Bundle/ChillDocGeneratorBundle/Service/Context/BaseContextData.php
@@ -0,0 +1,53 @@
+security = $security;
+ $this->normalizer = $normalizer;
+ }
+
+ public function getData(): array
+ {
+ $data = [];
+ $user = $this->security->getUser();
+
+ $data['creator'] = $this->normalizer->normalize(
+ $user instanceof User ? $user : null,
+ 'docgen',
+ ['docgen:expects' => User::class, 'groups' => ['docgen:read']]
+ );
+ $data['createdAt'] = $this->normalizer->normalize(new DateTimeImmutable(), 'docgen', [
+ 'docgen:expects' => DateTimeImmutable::class, 'groups' => ['docgen:read'],
+ ]);
+ $data['location'] = $this->normalizer->normalize(
+ $user instanceof User ? $user->getCurrentLocation() : null,
+ 'docgen',
+ ['docgen:expects' => Location::class, 'groups' => ['docgen:read']]
+ );
+
+ return $data;
+ }
+}
diff --git a/src/Bundle/ChillDocGeneratorBundle/config/services.yaml b/src/Bundle/ChillDocGeneratorBundle/config/services.yaml
index 54bf5a697..5bdfe2a11 100644
--- a/src/Bundle/ChillDocGeneratorBundle/config/services.yaml
+++ b/src/Bundle/ChillDocGeneratorBundle/config/services.yaml
@@ -34,6 +34,11 @@ services:
autowire: true
autoconfigure: true
+ Chill\DocGeneratorBundle\Service\Context\:
+ resource: "../Service/Context/"
+ autowire: true
+ autoconfigure: true
+
Chill\DocGeneratorBundle\GeneratorDriver\:
resource: "../GeneratorDriver/"
autowire: true
diff --git a/src/Bundle/ChillDocGeneratorBundle/tests/Serializer/Encoder/DocGenEncoderTest.php b/src/Bundle/ChillDocGeneratorBundle/tests/Serializer/Encoder/DocGenEncoderTest.php
index 35768a28c..1e529712f 100644
--- a/src/Bundle/ChillDocGeneratorBundle/tests/Serializer/Encoder/DocGenEncoderTest.php
+++ b/src/Bundle/ChillDocGeneratorBundle/tests/Serializer/Encoder/DocGenEncoderTest.php
@@ -23,7 +23,7 @@ final class DocGenEncoderTest extends TestCase
{
private DocGenEncoder $encoder;
- protected function setUp()
+ protected function setUp(): void
{
parent::setUp();
diff --git a/src/Bundle/ChillDocGeneratorBundle/tests/Serializer/Normalizer/DocGenObjectNormalizerTest.php b/src/Bundle/ChillDocGeneratorBundle/tests/Serializer/Normalizer/DocGenObjectNormalizerTest.php
index 8d5213b3d..ef7055048 100644
--- a/src/Bundle/ChillDocGeneratorBundle/tests/Serializer/Normalizer/DocGenObjectNormalizerTest.php
+++ b/src/Bundle/ChillDocGeneratorBundle/tests/Serializer/Normalizer/DocGenObjectNormalizerTest.php
@@ -25,7 +25,7 @@ final class DocGenObjectNormalizerTest extends KernelTestCase
{
private NormalizerInterface $normalizer;
- protected function setUp()
+ protected function setUp(): void
{
parent::setUp();
self::bootKernel();
diff --git a/src/Bundle/ChillDocGeneratorBundle/tests/Service/Context/BaseContextDataTest.php b/src/Bundle/ChillDocGeneratorBundle/tests/Service/Context/BaseContextDataTest.php
new file mode 100644
index 000000000..e5a1c6d5f
--- /dev/null
+++ b/src/Bundle/ChillDocGeneratorBundle/tests/Service/Context/BaseContextDataTest.php
@@ -0,0 +1,68 @@
+buildBaseContext();
+
+ $actual = $context->getData();
+
+ $this->assertIsArray($actual);
+ $this->assertArrayHasKey('creator', $actual);
+ $this->assertArrayHasKey('createdAt', $actual);
+ $this->assertArrayHasKey('location', $actual);
+ }
+
+ public function testGenerateWithUser()
+ {
+ $security = $this->prophesize(Security::class);
+ $security->getUser()->willReturn(new User());
+
+ $context = $this->buildBaseContext($security->reveal());
+
+ $actual = $context->getData();
+
+ $this->assertIsArray($actual);
+ $this->assertArrayHasKey('creator', $actual);
+ $this->assertArrayHasKey('createdAt', $actual);
+ $this->assertArrayHasKey('location', $actual);
+ }
+
+ private function buildBaseContext(
+ ?Security $security = null,
+ ?NormalizerInterface $normalizer = null
+ ): BaseContextData {
+ return new BaseContextData(
+ $security ?? self::$container->get(Security::class),
+ $normalizer ?? self::$container->get(NormalizerInterface::class)
+ );
+ }
+}
diff --git a/src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php b/src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php
index 25ac9f1bd..5028757bd 100644
--- a/src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php
+++ b/src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php
@@ -24,7 +24,6 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
-use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Translation\TranslatorInterface;
/**
@@ -100,7 +99,7 @@ class DocumentPersonController extends AbstractController
$document,
[
'center' => $document->getCenter(),
- 'role' => new Role('CHILL_PERSON_DOCUMENT_UPDATE'),
+ 'role' => 'CHILL_PERSON_DOCUMENT_UPDATE',
]
);
$form->handleRequest($request);
@@ -160,7 +159,7 @@ class DocumentPersonController extends AbstractController
$reachableScopes = $this->authorizationHelper
->getReachableScopes(
$this->getUser(),
- new Role(PersonDocumentVoter::SEE),
+ PersonDocumentVoter::SEE,
$person->getCenter()
);
@@ -204,7 +203,7 @@ class DocumentPersonController extends AbstractController
$form = $this->createForm(PersonDocumentType::class, $document, [
'center' => $document->getCenter(),
- 'role' => new Role('CHILL_PERSON_DOCUMENT_CREATE'),
+ 'role' => 'CHILL_PERSON_DOCUMENT_CREATE',
]);
$form->handleRequest($request);
diff --git a/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentACL.php b/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentACL.php
index 28a35dfb4..cab5895a9 100644
--- a/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentACL.php
+++ b/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentACL.php
@@ -18,6 +18,7 @@ use Chill\MainBundle\Entity\RoleScope;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Persistence\ObjectManager;
+
use function in_array;
/**
diff --git a/src/Bundle/ChillDocStoreBundle/Form/PersonDocumentType.php b/src/Bundle/ChillDocStoreBundle/Form/PersonDocumentType.php
index 474d9d132..86e8d350a 100644
--- a/src/Bundle/ChillDocStoreBundle/Form/PersonDocumentType.php
+++ b/src/Bundle/ChillDocStoreBundle/Form/PersonDocumentType.php
@@ -93,7 +93,7 @@ class PersonDocumentType extends AbstractType
]);
$resolver->setRequired(['role', 'center'])
- ->setAllowedTypes('role', [\Symfony\Component\Security\Core\Role\Role::class])
+ ->setAllowedTypes('role', ['string'])
->setAllowedTypes('center', [\Chill\MainBundle\Entity\Center::class]);
}
}
diff --git a/src/Bundle/ChillDocStoreBundle/Form/StoredObjectType.php b/src/Bundle/ChillDocStoreBundle/Form/StoredObjectType.php
index 4de5cf48c..f9cb645f7 100644
--- a/src/Bundle/ChillDocStoreBundle/Form/StoredObjectType.php
+++ b/src/Bundle/ChillDocStoreBundle/Form/StoredObjectType.php
@@ -19,6 +19,7 @@ use Symfony\Component\Form\CallbackTransformer;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
+
use function json_decode;
use function json_encode;
diff --git a/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js b/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js
index b8abcae62..4c82a8e4b 100644
--- a/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js
+++ b/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js
@@ -34,9 +34,6 @@ var download = (button) => {
key, url
;
- console.log('keyData', keyData);
- console.log('ivData', ivData);
-
button.textContent = labelPreparing;
window.fetch(urlGenerator)
@@ -48,36 +45,25 @@ var download = (button) => {
}
})
.then(data => {
- url = data.url;
-
- if (keyData.length > 0) {
- return window.crypto.subtle.importKey('jwk', keyData, { name: algo, iv: iv}, false, ['decrypt']);
- }
- return Promise.resolve(undefined);
+ return window.fetch(data.url);
})
- .then(nKey => {
- key = nKey;
-
- return window.fetch(url);
- })
- .then(r => {
- console.log('r', r);
- if (r.ok) {
- return r.arrayBuffer();
- } else {
- throw new Error(r.status + r.statusText);
+ .then(response => {
+ if (response.ok) {
+ return response.arrayBuffer();
}
+ throw new Error(response.status + response.statusText);
})
.then(buffer => {
- console.log('buffer', buffer);
- if (keyData.length > 0) {
- return window.crypto.subtle.decrypt({ name: algo, iv: iv }, key, buffer);
+ if (keyData.alg !== undefined) {
+ return window.crypto.subtle
+ .importKey('jwk', keyData, { name: algo, iv: iv}, false, ['decrypt'])
+ .then(key => {
+ return window.crypto.subtle.decrypt({ name: algo, iv: iv }, key, buffer);
+ });
}
-
return Promise.resolve(buffer);
})
.then(decrypted => {
- console.log('decrypted', decrypted);
var
blob = new Blob([decrypted], { type: mimeType }),
url = window.URL.createObjectURL(blob)
@@ -96,7 +82,6 @@ var download = (button) => {
button.click();
})
.catch(error => {
- console.log(error);
button.textContent = "";
button.appendChild(document.createTextNode("error while handling decrypted file"));
})
diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/new.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/new.html.twig
index 73d8cddf5..ad4fcfc81 100644
--- a/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/new.html.twig
+++ b/src/Bundle/ChillDocStoreBundle/Resources/views/PersonDocument/new.html.twig
@@ -32,7 +32,11 @@
{{ form_row(form.title) }}
{{ form_row(form.date) }}
{{ form_row(form.category) }}
- {{ form_row(form.scope) }}
+
+ {% if form.scope is defined %}
+ {{ form_row(form.scope) }}
+ {% endif %}
+
{{ form_row(form.description) }}
{{ form_row(form.object, { 'label': 'Document', 'existing': document.object }) }}
diff --git a/src/Bundle/ChillDocStoreBundle/Security/Authorization/AccompanyingCourseDocumentVoter.php b/src/Bundle/ChillDocStoreBundle/Security/Authorization/AccompanyingCourseDocumentVoter.php
index 18377211c..88e701fcf 100644
--- a/src/Bundle/ChillDocStoreBundle/Security/Authorization/AccompanyingCourseDocumentVoter.php
+++ b/src/Bundle/ChillDocStoreBundle/Security/Authorization/AccompanyingCourseDocumentVoter.php
@@ -22,6 +22,7 @@ use Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter;
use Psr\Log\LoggerInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Security;
+
use function in_array;
class AccompanyingCourseDocumentVoter extends AbstractChillVoter implements ProvideRoleHierarchyInterface
@@ -101,8 +102,10 @@ class AccompanyingCourseDocumentVoter extends AbstractChillVoter implements Prov
return false;
}
- if (AccompanyingPeriod::STEP_CLOSED === $subject->getCourse()->getStep()
- && in_array($attribute, [self::CREATE, self::DELETE, self::UPDATE], true)) {
+ if (
+ AccompanyingPeriod::STEP_CLOSED === $subject->getCourse()->getStep()
+ && in_array($attribute, [self::CREATE, self::DELETE, self::UPDATE], true)
+ ) {
return false;
}
}
diff --git a/src/Bundle/ChillDocStoreBundle/Security/Authorization/PersonDocumentVoter.php b/src/Bundle/ChillDocStoreBundle/Security/Authorization/PersonDocumentVoter.php
index 43d17e420..dbaa474a3 100644
--- a/src/Bundle/ChillDocStoreBundle/Security/Authorization/PersonDocumentVoter.php
+++ b/src/Bundle/ChillDocStoreBundle/Security/Authorization/PersonDocumentVoter.php
@@ -95,8 +95,10 @@ class PersonDocumentVoter extends AbstractChillVoter implements ProvideRoleHiera
return false;
}
- if ($subject instanceof PersonDocument
- && !$this->security->isGranted(PersonVoter::SEE, $subject->getPerson())) {
+ if (
+ $subject instanceof PersonDocument
+ && !$this->security->isGranted(PersonVoter::SEE, $subject->getPerson())
+ ) {
return false;
}
diff --git a/src/Bundle/ChillEventBundle/Controller/EventController.php b/src/Bundle/ChillEventBundle/Controller/EventController.php
index c7d98baaa..d87afac09 100644
--- a/src/Bundle/ChillEventBundle/Controller/EventController.php
+++ b/src/Bundle/ChillEventBundle/Controller/EventController.php
@@ -39,6 +39,7 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Translation\TranslatorInterface;
+
use function count;
/**
diff --git a/src/Bundle/ChillEventBundle/Controller/EventTypeController.php b/src/Bundle/ChillEventBundle/Controller/EventTypeController.php
index b4e19efc7..f1ced71a5 100644
--- a/src/Bundle/ChillEventBundle/Controller/EventTypeController.php
+++ b/src/Bundle/ChillEventBundle/Controller/EventTypeController.php
@@ -14,7 +14,6 @@ namespace Chill\EventBundle\Controller;
use Chill\EventBundle\Entity\EventType;
use Chill\EventBundle\Form\EventTypeType;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
-
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\HttpFoundation\Request;
diff --git a/src/Bundle/ChillEventBundle/Controller/ParticipationController.php b/src/Bundle/ChillEventBundle/Controller/ParticipationController.php
index b3294cfc6..63f40df32 100644
--- a/src/Bundle/ChillEventBundle/Controller/ParticipationController.php
+++ b/src/Bundle/ChillEventBundle/Controller/ParticipationController.php
@@ -25,6 +25,7 @@ use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
+
use function count;
/**
@@ -112,7 +113,9 @@ class ParticipationController extends AbstractController
[
'event_id' => current($participations)->getEvent()->getId(),
'persons_ids' => implode(',', array_map(
- static function (Participation $p) { return $p->getPerson()->getId(); },
+ static function (Participation $p) {
+ return $p->getPerson()->getId();
+ },
$participations
)),
]
@@ -648,7 +651,9 @@ class ParticipationController extends AbstractController
/** @var \Doctrine\Common\Collections\ArrayCollection $peopleParticipating */
$peopleParticipating = $peopleParticipating ??
$participation->getEvent()->getParticipations()->map(
- static function (Participation $p) { return $p->getPerson()->getId(); }
+ static function (Participation $p) {
+ return $p->getPerson()->getId();
+ }
);
// check that the user is not already in the event
if ($peopleParticipating->contains($participation->getPerson()->getId())) {
diff --git a/src/Bundle/ChillEventBundle/Controller/StatusController.php b/src/Bundle/ChillEventBundle/Controller/StatusController.php
index 7da8b989f..72e80b27b 100644
--- a/src/Bundle/ChillEventBundle/Controller/StatusController.php
+++ b/src/Bundle/ChillEventBundle/Controller/StatusController.php
@@ -14,7 +14,6 @@ namespace Chill\EventBundle\Controller;
use Chill\EventBundle\Entity\Status;
use Chill\EventBundle\Form\StatusType;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
-
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\HttpFoundation\Request;
diff --git a/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadRolesACL.php b/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadRolesACL.php
index ddcef3422..8bd1a3513 100644
--- a/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadRolesACL.php
+++ b/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadRolesACL.php
@@ -17,6 +17,7 @@ use Chill\MainBundle\Entity\RoleScope;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Persistence\ObjectManager;
+
use function in_array;
/**
diff --git a/src/Bundle/ChillEventBundle/Entity/Participation.php b/src/Bundle/ChillEventBundle/Entity/Participation.php
index 9ba34d398..d52618bcd 100644
--- a/src/Bundle/ChillEventBundle/Entity/Participation.php
+++ b/src/Bundle/ChillEventBundle/Entity/Participation.php
@@ -21,6 +21,7 @@ use DateTime;
use Doctrine\ORM\Mapping as ORM;
use RuntimeException;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
+
use function in_array;
/**
@@ -172,15 +173,19 @@ class Participation implements ArrayAccess, HasCenterInterface, HasScopeInterfac
return;
}
- if ($this->getRole()->getType()->getId() !==
- $this->getEvent()->getType()->getId()) {
+ if (
+ $this->getRole()->getType()->getId() !==
+ $this->getEvent()->getType()->getId()
+ ) {
$context->buildViolation('The role is not allowed with this event type')
->atPath('role')
->addViolation();
}
- if ($this->getStatus()->getType()->getId() !==
- $this->getEvent()->getType()->getId()) {
+ if (
+ $this->getStatus()->getType()->getId() !==
+ $this->getEvent()->getType()->getId()
+ ) {
$context->buildViolation('The status is not allowed with this event type')
->atPath('status')
->addViolation();
diff --git a/src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php b/src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php
index 953f1cc82..faac75668 100644
--- a/src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php
+++ b/src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php
@@ -16,6 +16,7 @@ use Doctrine\ORM\EntityRepository;
use RuntimeException;
use Symfony\Component\Form\ChoiceList\ChoiceListInterface;
use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface;
+
use function call_user_func;
use function count;
use function in_array;
@@ -83,8 +84,10 @@ class EventChoiceLoader implements ChoiceLoaderInterface
$event = $this->eventRepository->find($value);
- if ($this->hasCenterFilter()
- && !in_array($event->getCenter(), $this->centers, true)) {
+ if (
+ $this->hasCenterFilter()
+ && !in_array($event->getCenter(), $this->centers, true)
+ ) {
throw new RuntimeException('chosen an event not in correct center');
}
diff --git a/src/Bundle/ChillEventBundle/Form/Type/PickEventType.php b/src/Bundle/ChillEventBundle/Form/Type/PickEventType.php
index bb12e272c..881a9645b 100644
--- a/src/Bundle/ChillEventBundle/Form/Type/PickEventType.php
+++ b/src/Bundle/ChillEventBundle/Form/Type/PickEventType.php
@@ -29,6 +29,7 @@ use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Translation\TranslatorInterface;
+
use function in_array;
use function is_array;
@@ -170,10 +171,14 @@ class PickEventType extends AbstractType
. 'option must be an instance of ' . Center::class);
}
- if (!in_array($c->getId(), array_map(
- static function (Center $c) { return $c->getId(); },
- $centers
- ), true)) {
+ if (
+ !in_array($c->getId(), array_map(
+ static function (Center $c) {
+ return $c->getId();
+ },
+ $centers
+ ), true)
+ ) {
throw new AccessDeniedException('The given center is not reachable');
}
$selectedCenters[] = $c;
diff --git a/src/Bundle/ChillEventBundle/Search/EventSearch.php b/src/Bundle/ChillEventBundle/Search/EventSearch.php
index 2f90b785e..9b2052305 100644
--- a/src/Bundle/ChillEventBundle/Search/EventSearch.php
+++ b/src/Bundle/ChillEventBundle/Search/EventSearch.php
@@ -20,6 +20,7 @@ use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Templating\EngineInterface as TemplatingEngine;
+
use function count;
/**
@@ -174,7 +175,8 @@ class EventSearch extends AbstractSearch
if (
(isset($terms['name']) || isset($terms['_default']))
- && (!empty($terms['name']) || !empty($terms['_default']))) {
+ && (!empty($terms['name']) || !empty($terms['_default']))
+ ) {
// the form with name:"xyz" has precedence
$name = $terms['name'] ?? $terms['_default'];
diff --git a/src/Bundle/ChillEventBundle/Security/Authorization/EventVoter.php b/src/Bundle/ChillEventBundle/Security/Authorization/EventVoter.php
index b2c201e01..9d7c88500 100644
--- a/src/Bundle/ChillEventBundle/Security/Authorization/EventVoter.php
+++ b/src/Bundle/ChillEventBundle/Security/Authorization/EventVoter.php
@@ -22,6 +22,7 @@ use Psr\Log\LoggerInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface;
use Symfony\Component\Security\Core\Role\Role;
+
use function count;
use function in_array;
diff --git a/src/Bundle/ChillEventBundle/Security/Authorization/ParticipationVoter.php b/src/Bundle/ChillEventBundle/Security/Authorization/ParticipationVoter.php
index 3438f71c3..8d7a76c62 100644
--- a/src/Bundle/ChillEventBundle/Security/Authorization/ParticipationVoter.php
+++ b/src/Bundle/ChillEventBundle/Security/Authorization/ParticipationVoter.php
@@ -22,6 +22,7 @@ use Psr\Log\LoggerInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface;
use Symfony\Component\Security\Core\Role\Role;
+
use function count;
use function in_array;
diff --git a/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php b/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php
index 201cfb183..9cd9243b3 100644
--- a/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php
+++ b/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php
@@ -44,7 +44,7 @@ final class ParticipationControllerTest extends WebTestCase
*/
private $personsIdsCache = [];
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
diff --git a/src/Bundle/ChillEventBundle/Tests/Search/EventSearchTest.php b/src/Bundle/ChillEventBundle/Tests/Search/EventSearchTest.php
index 3e93c0dbf..30479b1a4 100644
--- a/src/Bundle/ChillEventBundle/Tests/Search/EventSearchTest.php
+++ b/src/Bundle/ChillEventBundle/Tests/Search/EventSearchTest.php
@@ -68,7 +68,7 @@ final class EventSearchTest extends WebTestCase
*/
protected $prophet;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
/** @var \Symfony\Component\HttpKernel\KernelInterface $kernel */
@@ -96,7 +96,7 @@ final class EventSearchTest extends WebTestCase
$this->createEvents();
}
- public function tearDown()
+ protected function tearDown(): void
{
foreach ($this->events as $event) {
$this->entityManager->createQuery('DELETE FROM ChillEventBundle:Event e WHERE e.id = :event_id')
diff --git a/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php b/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php
index c8747a2c4..132a74144 100644
--- a/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php
+++ b/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php
@@ -23,6 +23,7 @@ use Doctrine\ORM\Mapping\ClassMetadata;
use LogicException;
use RuntimeException;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
+
use function count;
/**
@@ -207,7 +208,9 @@ class TimelineEventProvider implements TimelineProviderInterface
foreach ($reachableCenters as $center) {
$reachableCircleId = array_map(
- static function (Scope $scope) { return $scope->getId(); },
+ static function (Scope $scope) {
+ return $scope->getId();
+ },
$this->helper->getReachableCircles($this->user, $role, $person->getCenter())
);
$centerAndScopeLines[] = sprintf(
diff --git a/src/Bundle/ChillFamilyMembersBundle/Security/Voter/FamilyMemberVoter.php b/src/Bundle/ChillFamilyMembersBundle/Security/Voter/FamilyMemberVoter.php
index 73c320720..2340ba7b9 100644
--- a/src/Bundle/ChillFamilyMembersBundle/Security/Voter/FamilyMemberVoter.php
+++ b/src/Bundle/ChillFamilyMembersBundle/Security/Voter/FamilyMemberVoter.php
@@ -18,6 +18,7 @@ use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
use Chill\MainBundle\Security\ProvideRoleHierarchyInterface;
use Chill\PersonBundle\Entity\Person;
use Symfony\Component\Security\Core\Role\Role;
+
use function in_array;
class FamilyMemberVoter extends AbstractChillVoter implements ProvideRoleHierarchyInterface
diff --git a/src/Bundle/ChillMainBundle/CRUD/Controller/AbstractCRUDController.php b/src/Bundle/ChillMainBundle/CRUD/Controller/AbstractCRUDController.php
index cd458e222..b1ee4894e 100644
--- a/src/Bundle/ChillMainBundle/CRUD/Controller/AbstractCRUDController.php
+++ b/src/Bundle/ChillMainBundle/CRUD/Controller/AbstractCRUDController.php
@@ -22,6 +22,7 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Serializer\SerializerInterface;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Component\Validator\Validator\ValidatorInterface;
+
use function array_merge;
abstract class AbstractCRUDController extends AbstractController
diff --git a/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php b/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php
index 15d8dbcc3..cfbe811fa 100644
--- a/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php
+++ b/src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php
@@ -23,6 +23,7 @@ use Symfony\Component\Serializer\Exception\NotEncodableValueException;
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
use Symfony\Component\Serializer\SerializerInterface;
use Symfony\Component\Validator\ConstraintViolationListInterface;
+
use function array_merge;
use function ucfirst;
diff --git a/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php b/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php
index 0e2881b54..d6e0450e3 100644
--- a/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php
+++ b/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php
@@ -28,6 +28,7 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Serializer\SerializerInterface;
use Symfony\Component\Translation\TranslatorInterface;
+
use function array_key_exists;
use function array_merge;
diff --git a/src/Bundle/ChillMainBundle/CRUD/Resolver/Resolver.php b/src/Bundle/ChillMainBundle/CRUD/Resolver/Resolver.php
index 11b84e586..d11c5fb98 100644
--- a/src/Bundle/ChillMainBundle/CRUD/Resolver/Resolver.php
+++ b/src/Bundle/ChillMainBundle/CRUD/Resolver/Resolver.php
@@ -13,6 +13,7 @@ namespace Chill\MainBundle\CRUD\Resolver;
use Doctrine\ORM\EntityManagerInterface;
use LogicException;
+
use function array_key_exists;
use function strtoupper;
diff --git a/src/Bundle/ChillMainBundle/CRUD/Routing/CRUDRoutesLoader.php b/src/Bundle/ChillMainBundle/CRUD/Routing/CRUDRoutesLoader.php
index 33cce8a2f..322218202 100644
--- a/src/Bundle/ChillMainBundle/CRUD/Routing/CRUDRoutesLoader.php
+++ b/src/Bundle/ChillMainBundle/CRUD/Routing/CRUDRoutesLoader.php
@@ -16,11 +16,13 @@ use Symfony\Component\Config\Loader\Loader;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
+
use function array_filter;
use function array_keys;
use function array_search;
use function count;
use function in_array;
+
use const ARRAY_FILTER_USE_BOTH;
class CRUDRoutesLoader extends Loader
@@ -139,7 +141,9 @@ class CRUDRoutesLoader extends Loader
$methods = array_keys(array_filter(
$action['methods'],
- static function ($value, $key) { return $value; },
+ static function ($value, $key) {
+ return $value;
+ },
ARRAY_FILTER_USE_BOTH
));
diff --git a/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php b/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php
index 1f07af303..383fd501d 100644
--- a/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php
+++ b/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php
@@ -32,6 +32,7 @@ use Symfony\Component\Console\Question\ConfirmationQuestion;
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
use Symfony\Component\Validator\ConstraintViolationListInterface;
use Symfony\Component\Validator\Validator\ValidatorInterface;
+
use function array_key_exists;
use function array_keys;
use function array_merge;
@@ -308,8 +309,10 @@ class ChillImportUsersCommand extends Command
$permissionGroupsByName = [];
- foreach ($this->em->getRepository(PermissionsGroup::class)
- ->findAll() as $permissionGroup) {
+ foreach (
+ $this->em->getRepository(PermissionsGroup::class)
+ ->findAll() as $permissionGroup
+ ) {
$permissionGroupsByName[$permissionGroup->getName()] = $permissionGroup;
}
@@ -338,11 +341,13 @@ class ChillImportUsersCommand extends Command
$this->tempOutput->writeln('You have chosen ' . implode(', ', $keys));
- if ($helper->ask(
- $this->tempInput,
- $this->tempOutput,
- new ConfirmationQuestion('Are you sure ?', true)
- )) {
+ if (
+ $helper->ask(
+ $this->tempInput,
+ $this->tempOutput,
+ new ConfirmationQuestion('Are you sure ?', true)
+ )
+ ) {
foreach ($keys as $key) {
$this->permissionGroups[$alias][] = $permissionGroupsByName[$key];
}
diff --git a/src/Bundle/ChillMainBundle/Command/ChillUserSendRenewPasswordCodeCommand.php b/src/Bundle/ChillMainBundle/Command/ChillUserSendRenewPasswordCodeCommand.php
index c94ea35c2..c119907b4 100644
--- a/src/Bundle/ChillMainBundle/Command/ChillUserSendRenewPasswordCodeCommand.php
+++ b/src/Bundle/ChillMainBundle/Command/ChillUserSendRenewPasswordCodeCommand.php
@@ -26,6 +26,7 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
+
use function array_key_exists;
use function array_merge;
use function in_array;
@@ -141,8 +142,10 @@ class ChillUserSendRenewPasswordCodeCommand extends Command
$headers = $reader->getHeader();
- if (false === in_array('username', $headers, true)
- && false === in_array('email', $headers, true)) {
+ if (
+ false === in_array('username', $headers, true)
+ && false === in_array('email', $headers, true)
+ ) {
throw new InvalidArgumentException('The csv file does not have an '
. 'username or email header');
}
diff --git a/src/Bundle/ChillMainBundle/Command/LoadAndUpdateLanguagesCommand.php b/src/Bundle/ChillMainBundle/Command/LoadAndUpdateLanguagesCommand.php
index dfb912eb9..dd751db01 100644
--- a/src/Bundle/ChillMainBundle/Command/LoadAndUpdateLanguagesCommand.php
+++ b/src/Bundle/ChillMainBundle/Command/LoadAndUpdateLanguagesCommand.php
@@ -17,6 +17,7 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Intl\Intl;
+
use function in_array;
/*
diff --git a/src/Bundle/ChillMainBundle/Command/LoadPostalCodesCommand.php b/src/Bundle/ChillMainBundle/Command/LoadPostalCodesCommand.php
index a5f3c8611..a3b1c1a26 100644
--- a/src/Bundle/ChillMainBundle/Command/LoadPostalCodesCommand.php
+++ b/src/Bundle/ChillMainBundle/Command/LoadPostalCodesCommand.php
@@ -24,6 +24,7 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Validator\Validator\ValidatorInterface;
+
use function count;
class LoadPostalCodesCommand extends Command
@@ -88,13 +89,15 @@ class LoadPostalCodesCommand extends Command
$num = 0;
$line = 0;
- while (false !== ($row = fgetcsv(
- $csv,
- 0,
- $input->getOption('delimiter'),
- $input->getOption('enclosure'),
- $input->getOption('escape')
- ))) {
+ while (
+ false !== ($row = fgetcsv(
+ $csv,
+ 0,
+ $input->getOption('delimiter'),
+ $input->getOption('enclosure'),
+ $input->getOption('escape')
+ ))
+ ) {
try {
$this->addPostalCode($row, $output);
++$num;
diff --git a/src/Bundle/ChillMainBundle/Controller/AddressReferenceAPIController.php b/src/Bundle/ChillMainBundle/Controller/AddressReferenceAPIController.php
index 498c77c68..1a7d8956a 100644
--- a/src/Bundle/ChillMainBundle/Controller/AddressReferenceAPIController.php
+++ b/src/Bundle/ChillMainBundle/Controller/AddressReferenceAPIController.php
@@ -23,6 +23,7 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
+
use function trim;
final class AddressReferenceAPIController extends ApiController
diff --git a/src/Bundle/ChillMainBundle/Controller/AdminController.php b/src/Bundle/ChillMainBundle/Controller/AdminController.php
index 96ba627e4..efde1ae20 100644
--- a/src/Bundle/ChillMainBundle/Controller/AdminController.php
+++ b/src/Bundle/ChillMainBundle/Controller/AdminController.php
@@ -12,7 +12,6 @@ declare(strict_types=1);
namespace Chill\MainBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
-
use Symfony\Component\Routing\Annotation\Route;
class AdminController extends AbstractController
diff --git a/src/Bundle/ChillMainBundle/Controller/CenterController.php b/src/Bundle/ChillMainBundle/Controller/CenterController.php
index 02ea19e20..fbdca566b 100644
--- a/src/Bundle/ChillMainBundle/Controller/CenterController.php
+++ b/src/Bundle/ChillMainBundle/Controller/CenterController.php
@@ -14,7 +14,6 @@ namespace Chill\MainBundle\Controller;
use Chill\MainBundle\Entity\Center;
use Chill\MainBundle\Form\CenterType;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
-
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\HttpFoundation\Request;
diff --git a/src/Bundle/ChillMainBundle/Controller/ExportController.php b/src/Bundle/ChillMainBundle/Controller/ExportController.php
index 809d0502d..6921dd284 100644
--- a/src/Bundle/ChillMainBundle/Controller/ExportController.php
+++ b/src/Bundle/ChillMainBundle/Controller/ExportController.php
@@ -25,6 +25,7 @@ use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Translation\TranslatorInterface;
+
use function count;
use function serialize;
use function unserialize;
@@ -484,11 +485,13 @@ class ExportController extends AbstractController
$data = $form->getData();
// check ACL
- if ($exportManager->isGrantedForElement(
- $export,
- null,
- $exportManager->getPickedCenters($data['centers'])
- ) === false) {
+ if (
+ $exportManager->isGrantedForElement(
+ $export,
+ null,
+ $exportManager->getPickedCenters($data['centers'])
+ ) === false
+ ) {
throw $this->createAccessDeniedException('you do not have '
. 'access to this export for those centers');
}
diff --git a/src/Bundle/ChillMainBundle/Controller/LocationApiController.php b/src/Bundle/ChillMainBundle/Controller/LocationApiController.php
index 525475e3c..250d92980 100644
--- a/src/Bundle/ChillMainBundle/Controller/LocationApiController.php
+++ b/src/Bundle/ChillMainBundle/Controller/LocationApiController.php
@@ -21,11 +21,14 @@ class LocationApiController extends ApiController
{
public function customizeQuery(string $action, Request $request, $query): void
{
- $query->andWhere(
- $query->expr()->andX(
- $query->expr()->eq('e.availableForUsers', "'TRUE'"),
- $query->expr()->eq('e.active', "'TRUE'"),
- )
- );
+ $query
+ ->leftJoin('e.locationType', 'lt')
+ ->andWhere(
+ $query->expr()->andX(
+ $query->expr()->eq('e.availableForUsers', "'TRUE'"),
+ $query->expr()->eq('lt.availableForUsers', "'TRUE'"),
+ $query->expr()->eq('e.active', "'TRUE'"),
+ )
+ );
}
}
diff --git a/src/Bundle/ChillMainBundle/Controller/PermissionApiController.php b/src/Bundle/ChillMainBundle/Controller/PermissionApiController.php
index 6a2afccb2..5293ddc70 100644
--- a/src/Bundle/ChillMainBundle/Controller/PermissionApiController.php
+++ b/src/Bundle/ChillMainBundle/Controller/PermissionApiController.php
@@ -18,6 +18,7 @@ use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\Security;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
+
use function array_key_exists;
use function json_decode;
diff --git a/src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php b/src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php
index 8cffd02b3..59b97a57c 100644
--- a/src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php
+++ b/src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php
@@ -26,6 +26,7 @@ use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Security\Core\Role\RoleHierarchy;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
+
use function array_key_exists;
/**
diff --git a/src/Bundle/ChillMainBundle/Controller/PostalCodeController.php b/src/Bundle/ChillMainBundle/Controller/PostalCodeController.php
index 0280be61f..f38e0004b 100644
--- a/src/Bundle/ChillMainBundle/Controller/PostalCodeController.php
+++ b/src/Bundle/ChillMainBundle/Controller/PostalCodeController.php
@@ -18,6 +18,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
+
use function array_map;
/**
@@ -54,12 +55,12 @@ class PostalCodeController extends AbstractController
->createQuery(
sprintf(
'SELECT p.id AS id, p.name AS name, p.code AS code, '
- . 'country.name AS country_name, '
- . 'country.countryCode AS country_code '
- . 'FROM %s p '
- . 'JOIN p.country country '
- . 'WHERE LOWER(p.name) LIKE LOWER(:pattern) OR LOWER(p.code) LIKE LOWER(:pattern) '
- . 'ORDER BY code',
+ . 'country.name AS country_name, '
+ . 'country.countryCode AS country_code '
+ . 'FROM %s p '
+ . 'JOIN p.country country '
+ . 'WHERE LOWER(p.name) LIKE LOWER(:pattern) OR LOWER(p.code) LIKE LOWER(:pattern) '
+ . 'ORDER BY code',
PostalCode::class
)
)
diff --git a/src/Bundle/ChillMainBundle/Controller/SearchController.php b/src/Bundle/ChillMainBundle/Controller/SearchController.php
index c231bf162..b9f5d19d8 100644
--- a/src/Bundle/ChillMainBundle/Controller/SearchController.php
+++ b/src/Bundle/ChillMainBundle/Controller/SearchController.php
@@ -27,6 +27,7 @@ use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Contracts\Translation\TranslatorInterface;
+
use function count;
use function key;
use function reset;
diff --git a/src/Bundle/ChillMainBundle/Controller/TimelineCenterController.php b/src/Bundle/ChillMainBundle/Controller/TimelineCenterController.php
index 8cf5f8782..5d50f246c 100644
--- a/src/Bundle/ChillMainBundle/Controller/TimelineCenterController.php
+++ b/src/Bundle/ChillMainBundle/Controller/TimelineCenterController.php
@@ -17,6 +17,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\Security;
+
use function count;
class TimelineCenterController extends AbstractController
diff --git a/src/Bundle/ChillMainBundle/Controller/UserApiController.php b/src/Bundle/ChillMainBundle/Controller/UserApiController.php
index 75e566048..d1fd4d5bb 100644
--- a/src/Bundle/ChillMainBundle/Controller/UserApiController.php
+++ b/src/Bundle/ChillMainBundle/Controller/UserApiController.php
@@ -17,6 +17,27 @@ use Symfony\Component\Routing\Annotation\Route;
class UserApiController extends ApiController
{
+ /**
+ * @Route(
+ * "/api/1.0/main/user-current-location.{_format}",
+ * name="chill_main_user_current_location",
+ * requirements={
+ * "_format": "json"
+ * }
+ * )
+ *
+ * @param mixed $_format
+ */
+ public function currentLocation($_format): JsonResponse
+ {
+ return $this->json(
+ $this->getUser()->getCurrentLocation(),
+ JsonResponse::HTTP_OK,
+ [],
+ ['groups' => ['read']]
+ );
+ }
+
/**
* @Route(
* "/api/1.0/main/whoami.{_format}",
diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadLanguages.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadLanguages.php
index 47d63efdf..0b6e6a833 100644
--- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadLanguages.php
+++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadLanguages.php
@@ -18,6 +18,7 @@ use Doctrine\Persistence\ObjectManager;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Intl\Intl;
+
use function in_array;
/**
@@ -51,7 +52,7 @@ class LoadLanguages extends AbstractFixture implements ContainerAwareInterface,
if (
!in_array($code, $this->regionalVersionToInclude, true)
&& !in_array($code, $this->ancientToExclude, true)
- ) {
+ ) {
$lang = (new Language())
->setId($code)
->setName($this->prepareName($code));
diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPostalCodes.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPostalCodes.php
index ecf839450..3da6e86da 100644
--- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPostalCodes.php
+++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPostalCodes.php
@@ -17,6 +17,7 @@ use Chill\MainBundle\Entity\PostalCode;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Persistence\ObjectManager;
+
use function strtolower;
use function ucwords;
diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php
index b7d7cb941..6a518bada 100644
--- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php
+++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php
@@ -20,6 +20,7 @@ use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Security\Core\Encoder\EncoderFactory;
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder;
+
use function str_replace;
/**
diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php
index 012643aad..772f4d8ee 100644
--- a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php
+++ b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php
@@ -38,12 +38,14 @@ use Chill\MainBundle\Form\LocationTypeType;
use Chill\MainBundle\Form\UserJobType;
use Chill\MainBundle\Form\UserType;
use Exception;
+use Ramsey\Uuid\Doctrine\UuidType;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
+
use function count;
/**
@@ -228,12 +230,9 @@ class ChillMainExtension extends Extension implements
'geometry' => 'string',
],
'types' => [
- 'dateinterval' => [
- 'class' => NativeDateIntervalType::class,
- ],
- 'point' => [
- 'class' => PointType::class,
- ],
+ 'dateinterval' => NativeDateIntervalType::class,
+ 'point' => PointType::class,
+ 'uuid' => UuidType::class,
],
],
]
diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/ConfigConsistencyCompilerPass.php b/src/Bundle/ChillMainBundle/DependencyInjection/ConfigConsistencyCompilerPass.php
index 5a803e9de..15943b775 100644
--- a/src/Bundle/ChillMainBundle/DependencyInjection/ConfigConsistencyCompilerPass.php
+++ b/src/Bundle/ChillMainBundle/DependencyInjection/ConfigConsistencyCompilerPass.php
@@ -15,6 +15,7 @@ use LogicException;
use RuntimeException;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
+
use function count;
/**
diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php b/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php
index e352470e7..0b055b682 100644
--- a/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php
+++ b/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php
@@ -21,6 +21,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
use UnexpectedValueException;
+
use function array_key_exists;
use function count;
use function get_class;
@@ -373,8 +374,10 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface
private function isPlaceAllowedForWidget($place, $widgetAlias, ContainerBuilder $container)
{
if ($this->widgetServices[$widgetAlias] instanceof WidgetFactoryInterface) {
- if (in_array($place, $this->widgetServices[$widgetAlias]
- ->getAllowedPlaces(), true)) {
+ if (
+ in_array($place, $this->widgetServices[$widgetAlias]
+ ->getAllowedPlaces(), true)
+ ) {
return true;
}
} else {
diff --git a/src/Bundle/ChillMainBundle/Doctrine/Event/TrackCreateUpdateSubscriber.php b/src/Bundle/ChillMainBundle/Doctrine/Event/TrackCreateUpdateSubscriber.php
index 3aabe46fc..ad355544f 100644
--- a/src/Bundle/ChillMainBundle/Doctrine/Event/TrackCreateUpdateSubscriber.php
+++ b/src/Bundle/ChillMainBundle/Doctrine/Event/TrackCreateUpdateSubscriber.php
@@ -41,8 +41,10 @@ class TrackCreateUpdateSubscriber implements EventSubscriber
{
$object = $args->getObject();
- if ($object instanceof TrackCreationInterface
- && $this->security->getUser() instanceof User) {
+ if (
+ $object instanceof TrackCreationInterface
+ && $this->security->getUser() instanceof User
+ ) {
$object->setCreatedBy($this->security->getUser());
$object->setCreatedAt(new DateTimeImmutable('now'));
}
@@ -59,8 +61,10 @@ class TrackCreateUpdateSubscriber implements EventSubscriber
protected function onUpdate(object $object): void
{
- if ($object instanceof TrackUpdateInterface
- && $this->security->getUser() instanceof User) {
+ if (
+ $object instanceof TrackUpdateInterface
+ && $this->security->getUser() instanceof User
+ ) {
$object->setUpdatedBy($this->security->getUser());
$object->setUpdatedAt(new DateTimeImmutable('now'));
}
diff --git a/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php b/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php
index f63101b33..31983d969 100644
--- a/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php
+++ b/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php
@@ -13,6 +13,7 @@ namespace Chill\MainBundle\Doctrine\Model;
use Exception;
use JsonSerializable;
+
use function json_encode;
class Point implements JsonSerializable
diff --git a/src/Bundle/ChillMainBundle/Doctrine/Type/NativeDateIntervalType.php b/src/Bundle/ChillMainBundle/Doctrine/Type/NativeDateIntervalType.php
index a1ec0c955..8f8d63aef 100644
--- a/src/Bundle/ChillMainBundle/Doctrine/Type/NativeDateIntervalType.php
+++ b/src/Bundle/ChillMainBundle/Doctrine/Type/NativeDateIntervalType.php
@@ -16,6 +16,7 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\ConversionException;
use Doctrine\DBAL\Types\DateIntervalType;
use Exception;
+
use function count;
use function current;
use function preg_match;
diff --git a/src/Bundle/ChillMainBundle/Entity/AddressReference.php b/src/Bundle/ChillMainBundle/Entity/AddressReference.php
index 99efd391d..a9d421fcb 100644
--- a/src/Bundle/ChillMainBundle/Entity/AddressReference.php
+++ b/src/Bundle/ChillMainBundle/Entity/AddressReference.php
@@ -17,7 +17,9 @@ use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity
- * @ORM\Table(name="chill_main_address_reference")
+ * @ORM\Table(name="chill_main_address_reference", indexes={
+ * @ORM\Index(name="address_refid", columns={"refId"}, options={"where": "refid != ''"})
+ * })
* @ORM\HasLifecycleCallbacks
*/
class AddressReference
diff --git a/src/Bundle/ChillMainBundle/Entity/Civility.php b/src/Bundle/ChillMainBundle/Entity/Civility.php
index 48b2a7569..c91016a63 100644
--- a/src/Bundle/ChillMainBundle/Entity/Civility.php
+++ b/src/Bundle/ChillMainBundle/Entity/Civility.php
@@ -47,6 +47,11 @@ class Civility
*/
private array $name = [];
+ /**
+ * @ORM\Column(type="float", name="ordering", nullable=true, options={"default": 0.0})
+ */
+ private float $order = 0;
+
public function getAbbreviation(): array
{
return $this->abbreviation;
@@ -67,6 +72,11 @@ class Civility
return $this->name;
}
+ public function getOrder(): ?float
+ {
+ return $this->order;
+ }
+
/**
* @return Civility
*/
@@ -90,4 +100,11 @@ class Civility
return $this;
}
+
+ public function setOrder(float $order): self
+ {
+ $this->order = $order;
+
+ return $this;
+ }
}
diff --git a/src/Bundle/ChillMainBundle/Entity/Location.php b/src/Bundle/ChillMainBundle/Entity/Location.php
index ba1ad8fb0..8496374d8 100644
--- a/src/Bundle/ChillMainBundle/Entity/Location.php
+++ b/src/Bundle/ChillMainBundle/Entity/Location.php
@@ -40,7 +40,7 @@ class Location implements TrackCreationInterface, TrackUpdateInterface
/**
* @ORM\ManyToOne(targetEntity=Address::class, cascade={"persist"})
* @ORM\JoinColumn(nullable=true)
- * @Serializer\Groups({"read", "write"})
+ * @Serializer\Groups({"read", "write", "docgen:read"})
*/
private ?Address $address = null;
@@ -72,26 +72,26 @@ class Location implements TrackCreationInterface, TrackUpdateInterface
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
- * @Serializer\Groups({"read"})
+ * @Serializer\Groups({"read", "docgen:read"})
*/
private ?int $id = null;
/**
* @ORM\ManyToOne(targetEntity=LocationType::class)
* @ORM\JoinColumn(nullable=false)
- * @Serializer\Groups({"read", "write"})
+ * @Serializer\Groups({"read", "write", "docgen:read"})
*/
private ?LocationType $locationType = null;
/**
* @ORM\Column(type="string", length=255, nullable=true)
- * @Serializer\Groups({"read", "write"})
+ * @Serializer\Groups({"read", "write", "docgen:read"})
*/
private ?string $name = null;
/**
* @ORM\Column(type="string", length=64, nullable=true)
- * @Serializer\Groups({"read", "write"})
+ * @Serializer\Groups({"read", "write", "docgen:read"})
* @Assert\Regex(pattern="/^([\+{1}])([0-9\s*]{4,20})$/")
* @PhonenumberConstraint(type="any")
*/
@@ -99,7 +99,7 @@ class Location implements TrackCreationInterface, TrackUpdateInterface
/**
* @ORM\Column(type="string", length=64, nullable=true)
- * @Serializer\Groups({"read", "write"})
+ * @Serializer\Groups({"read", "write", "docgen:read"})
* @Assert\Regex(pattern="/^([\+{1}])([0-9\s*]{4,20})$/")
* @PhonenumberConstraint(type="any")
*/
diff --git a/src/Bundle/ChillMainBundle/Entity/LocationType.php b/src/Bundle/ChillMainBundle/Entity/LocationType.php
index cda7e073f..9081304c8 100644
--- a/src/Bundle/ChillMainBundle/Entity/LocationType.php
+++ b/src/Bundle/ChillMainBundle/Entity/LocationType.php
@@ -71,13 +71,14 @@ class LocationType
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
- * @Serializer\Groups({"read"})
+ * @Serializer\Groups({"read", "docgen:read"})
*/
private ?int $id = null;
/**
* @ORM\Column(type="json")
- * @Serializer\Groups({"read"})
+ * @Serializer\Groups({"read", "docgen:read"})
+ * @Serializer\Context({"is-translatable": true}, groups={"docgen:read"})
*/
private array $title = [];
diff --git a/src/Bundle/ChillMainBundle/Entity/User.php b/src/Bundle/ChillMainBundle/Entity/User.php
index de9d1199c..0c3194fba 100644
--- a/src/Bundle/ChillMainBundle/Entity/User.php
+++ b/src/Bundle/ChillMainBundle/Entity/User.php
@@ -18,6 +18,7 @@ use RuntimeException;
use Symfony\Component\Security\Core\User\AdvancedUserInterface;
use Symfony\Component\Serializer\Annotation as Serializer;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
+
use function in_array;
/**
diff --git a/src/Bundle/ChillMainBundle/Export/ExportManager.php b/src/Bundle/ChillMainBundle/Export/ExportManager.php
index 6c0d3bd8b..f9964ea3b 100644
--- a/src/Bundle/ChillMainBundle/Export/ExportManager.php
+++ b/src/Bundle/ChillMainBundle/Export/ExportManager.php
@@ -26,6 +26,7 @@ use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use UnexpectedValueException;
+
use function array_key_exists;
use function count;
use function get_class;
@@ -122,8 +123,10 @@ class ExportManager
public function &getFiltersApplyingOn(ExportInterface $export, ?array $centers = null)
{
foreach ($this->filters as $alias => $filter) {
- if (in_array($filter->applyOn(), $export->supportsModifiers(), true)
- && $this->isGrantedForElement($filter, $export, $centers)) {
+ if (
+ in_array($filter->applyOn(), $export->supportsModifiers(), true)
+ && $this->isGrantedForElement($filter, $export, $centers)
+ ) {
yield $alias => $filter;
}
}
@@ -143,8 +146,10 @@ class ExportManager
}
foreach ($this->aggregators as $alias => $aggregator) {
- if (in_array($aggregator->applyOn(), $export->supportsModifiers(), true)
- && $this->isGrantedForElement($aggregator, $export, $centers)) {
+ if (
+ in_array($aggregator->applyOn(), $export->supportsModifiers(), true)
+ && $this->isGrantedForElement($aggregator, $export, $centers)
+ ) {
yield $alias => $aggregator;
}
}
diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php
index 914fa15c3..7e5b71268 100644
--- a/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php
+++ b/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php
@@ -20,6 +20,7 @@ use Symfony\Component\Form\Extension\Core\Type\FormType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Contracts\Translation\TranslatorInterface;
+
use function array_key_exists;
use function array_slice;
use function call_user_func;
diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/CSVListFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/CSVListFormatter.php
index 94c8c5ee3..cb184e250 100644
--- a/src/Bundle/ChillMainBundle/Export/Formatter/CSVListFormatter.php
+++ b/src/Bundle/ChillMainBundle/Export/Formatter/CSVListFormatter.php
@@ -19,6 +19,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Translation\TranslatorInterface;
+
use function array_key_exists;
use function array_keys;
use function array_map;
@@ -198,7 +199,9 @@ class CSVListFormatter implements FormatterInterface
foreach ($keys as $key) {
// get an array with all values for this key if possible
- $values = array_map(static function ($v) use ($key) { return $v[$key]; }, $this->result);
+ $values = array_map(static function ($v) use ($key) {
+ return $v[$key];
+ }, $this->result);
// store the label in the labelsCache property
$this->labelsCache[$key] = $export->getLabels($key, $values, $this->exportData);
}
diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/CSVPivotedListFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/CSVPivotedListFormatter.php
index 7e3334340..790a8b540 100644
--- a/src/Bundle/ChillMainBundle/Export/Formatter/CSVPivotedListFormatter.php
+++ b/src/Bundle/ChillMainBundle/Export/Formatter/CSVPivotedListFormatter.php
@@ -18,6 +18,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Translation\TranslatorInterface;
+
use function array_map;
use function count;
@@ -186,7 +187,9 @@ class CSVPivotedListFormatter implements FormatterInterface
foreach ($keys as $key) {
// get an array with all values for this key if possible
- $values = array_map(static function ($v) use ($key) { return $v[$key]; }, $this->result);
+ $values = array_map(static function ($v) use ($key) {
+ return $v[$key];
+ }, $this->result);
// store the label in the labelsCache property
$this->labelsCache[$key] = $export->getLabels($key, $values, $this->exportData);
}
diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php
index 590e79a41..0c890f009 100644
--- a/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php
+++ b/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php
@@ -20,6 +20,7 @@ use Symfony\Component\Form\Extension\Core\Type\FormType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Translation\TranslatorInterface;
+
use function array_map;
use function array_merge;
use function array_multisort;
diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/SpreadsheetListFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/SpreadsheetListFormatter.php
index e31535602..aaebadd99 100644
--- a/src/Bundle/ChillMainBundle/Export/Formatter/SpreadsheetListFormatter.php
+++ b/src/Bundle/ChillMainBundle/Export/Formatter/SpreadsheetListFormatter.php
@@ -24,6 +24,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Translation\TranslatorInterface;
+
use function array_key_exists;
use function array_keys;
use function array_map;
@@ -257,7 +258,9 @@ class SpreadsheetListFormatter implements FormatterInterface
foreach ($keys as $key) {
// get an array with all values for this key if possible
- $values = array_map(static function ($v) use ($key) { return $v[$key]; }, $this->result);
+ $values = array_map(static function ($v) use ($key) {
+ return $v[$key];
+ }, $this->result);
// store the label in the labelsCache property
$this->labelsCache[$key] = $export->getLabels($key, $values, $this->exportData);
}
diff --git a/src/Bundle/ChillMainBundle/Form/ChoiceLoader/PostalCodeChoiceLoader.php b/src/Bundle/ChillMainBundle/Form/ChoiceLoader/PostalCodeChoiceLoader.php
index 7e0702de1..ed0426b8b 100644
--- a/src/Bundle/ChillMainBundle/Form/ChoiceLoader/PostalCodeChoiceLoader.php
+++ b/src/Bundle/ChillMainBundle/Form/ChoiceLoader/PostalCodeChoiceLoader.php
@@ -15,6 +15,7 @@ use Chill\MainBundle\Entity\PostalCode;
use Chill\MainBundle\Repository\PostalCodeRepository;
use Symfony\Component\Form\ChoiceList\ChoiceListInterface;
use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface;
+
use function call_user_func;
/**
diff --git a/src/Bundle/ChillMainBundle/Form/PermissionsGroupType.php b/src/Bundle/ChillMainBundle/Form/PermissionsGroupType.php
index e798a262e..706ba4f08 100644
--- a/src/Bundle/ChillMainBundle/Form/PermissionsGroupType.php
+++ b/src/Bundle/ChillMainBundle/Form/PermissionsGroupType.php
@@ -17,6 +17,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
+
use function array_combine;
use function array_merge;
use function count;
diff --git a/src/Bundle/ChillMainBundle/Form/Type/ComposedGroupCenterType.php b/src/Bundle/ChillMainBundle/Form/Type/ComposedGroupCenterType.php
index 1398a8ce2..11b079f4a 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/ComposedGroupCenterType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/ComposedGroupCenterType.php
@@ -15,7 +15,6 @@ use Chill\MainBundle\Entity\Center;
use Chill\MainBundle\Entity\PermissionsGroup;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
-
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
diff --git a/src/Bundle/ChillMainBundle/Form/Type/ComposedRoleScopeType.php b/src/Bundle/ChillMainBundle/Form/Type/ComposedRoleScopeType.php
index bf5e2d4f8..2f3378ae8 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/ComposedRoleScopeType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/ComposedRoleScopeType.php
@@ -16,10 +16,10 @@ use Chill\MainBundle\Security\RoleProvider;
use Chill\MainBundle\Templating\TranslatableStringHelper;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
-
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
+
use function in_array;
/**
diff --git a/src/Bundle/ChillMainBundle/Form/Type/DataTransformer/CenterTransformer.php b/src/Bundle/ChillMainBundle/Form/Type/DataTransformer/CenterTransformer.php
index a0f609d46..1bc02f9dd 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/DataTransformer/CenterTransformer.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/DataTransformer/CenterTransformer.php
@@ -18,6 +18,7 @@ use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\TransformationFailedException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Traversable;
+
use function count;
class CenterTransformer implements DataTransformerInterface
diff --git a/src/Bundle/ChillMainBundle/Form/Type/DateIntervalType.php b/src/Bundle/ChillMainBundle/Form/Type/DateIntervalType.php
index 66ae4d846..a99ee6135 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/DateIntervalType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/DateIntervalType.php
@@ -19,6 +19,7 @@ use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Validator\Constraints\GreaterThan;
+
use function array_diff;
use function array_values;
use function count;
diff --git a/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php b/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php
index daf33eb57..2fe5ff8f2 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php
@@ -23,6 +23,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
+
use function array_intersect;
use function array_key_exists;
use function array_merge;
@@ -85,7 +86,9 @@ class PickCenterType extends AbstractType
'query_builder' => static function (EntityRepository $er) use ($centers) {
$qb = $er->createQueryBuilder('c');
$ids = array_map(
- static function (Center $el) { return $el->getId(); },
+ static function (Center $el) {
+ return $el->getId();
+ },
$centers
);
@@ -93,7 +96,9 @@ class PickCenterType extends AbstractType
},
'multiple' => true,
'expanded' => true,
- 'choice_label' => static function (Center $c) { return $c->getName(); },
+ 'choice_label' => static function (Center $c) {
+ return $c->getName();
+ },
'data' => count($this->groupingCenters) > 0 ? null : $centers,
]);
@@ -122,8 +127,12 @@ class PickCenterType extends AbstractType
}
$builder->addModelTransformer(new CallbackTransformer(
- function ($data) use ($centers) { return $this->transform($data, $centers); },
- function ($data) use ($centers) { return $this->reverseTransform($data, $centers); }
+ function ($data) use ($centers) {
+ return $this->transform($data, $centers);
+ },
+ function ($data) use ($centers) {
+ return $this->reverseTransform($data, $centers);
+ }
));
}
diff --git a/src/Bundle/ChillMainBundle/Form/Type/Export/PickFormatterType.php b/src/Bundle/ChillMainBundle/Form/Type/Export/PickFormatterType.php
index 2b1c8e093..885be3c27 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/Export/PickFormatterType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/Export/PickFormatterType.php
@@ -15,7 +15,6 @@ use Chill\MainBundle\Export\ExportManager;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
-
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
diff --git a/src/Bundle/ChillMainBundle/Form/Type/Listing/FilterOrderType.php b/src/Bundle/ChillMainBundle/Form/Type/Listing/FilterOrderType.php
index 488246a50..2b6cdc21d 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/Listing/FilterOrderType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/Listing/FilterOrderType.php
@@ -19,6 +19,7 @@ use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\HttpFoundation\RequestStack;
+
use function array_combine;
use function array_map;
use function count;
diff --git a/src/Bundle/ChillMainBundle/Form/Type/PickAddressType.php b/src/Bundle/ChillMainBundle/Form/Type/PickAddressType.php
index 647c45553..20933563a 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/PickAddressType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/PickAddressType.php
@@ -20,6 +20,7 @@ use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Contracts\Translation\TranslatorInterface;
+
use function uniqid;
/**
diff --git a/src/Bundle/ChillMainBundle/Form/Type/PickCenterType.php b/src/Bundle/ChillMainBundle/Form/Type/PickCenterType.php
index 5ccf217a0..053ee31e1 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/PickCenterType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/PickCenterType.php
@@ -25,6 +25,7 @@ use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Security\Core\Security;
+
use function array_merge;
use function array_values;
use function count;
@@ -151,8 +152,10 @@ class PickCenterType extends AbstractType
$centers = [];
foreach ($scopes as $scope) {
- foreach ($this->authorizationHelper
- ->getReachableCenters($this->security->getUser(), $role, $scope) as $center) {
+ foreach (
+ $this->authorizationHelper
+ ->getReachableCenters($this->security->getUser(), $role, $scope) as $center
+ ) {
$centers[spl_object_hash($center)] = $center;
}
}
diff --git a/src/Bundle/ChillMainBundle/Form/Type/ScopePickerType.php b/src/Bundle/ChillMainBundle/Form/Type/ScopePickerType.php
index 4aa8948ec..92a1b26c3 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/ScopePickerType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/ScopePickerType.php
@@ -29,6 +29,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Security\Core\Security;
+
use function array_map;
use function count;
@@ -80,7 +81,7 @@ class ScopePickerType extends AbstractType
{
$items = $this->authorizationHelper->getReachableScopes(
$this->security->getUser(),
- $options['role']->getRole(),
+ $options['role'] instanceof Role ? $options['role']->getRole() : $options['role'],
$options['center']
);
diff --git a/src/Bundle/ChillMainBundle/Form/Type/Select2CountryType.php b/src/Bundle/ChillMainBundle/Form/Type/Select2CountryType.php
index bed90ad18..d3374e9de 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/Select2CountryType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/Select2CountryType.php
@@ -19,6 +19,7 @@ use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\OptionsResolver\OptionsResolver;
+
use const SORT_FLAG_CASE;
use const SORT_STRING;
diff --git a/src/Bundle/ChillMainBundle/Form/Type/Select2LanguageType.php b/src/Bundle/ChillMainBundle/Form/Type/Select2LanguageType.php
index 9fad2bdb3..4c8e11a49 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/Select2LanguageType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/Select2LanguageType.php
@@ -19,6 +19,7 @@ use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\OptionsResolver\OptionsResolver;
+
use const SORT_FLAG_CASE;
use const SORT_STRING;
diff --git a/src/Bundle/ChillMainBundle/Form/Type/TranslatableStringFormType.php b/src/Bundle/ChillMainBundle/Form/Type/TranslatableStringFormType.php
index 3f44a4e97..822ff0101 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/TranslatableStringFormType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/TranslatableStringFormType.php
@@ -19,6 +19,7 @@ use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Translation\Translator;
+
use function in_array;
class TranslatableStringFormType extends AbstractType
diff --git a/src/Bundle/ChillMainBundle/Form/Type/UserPickerType.php b/src/Bundle/ChillMainBundle/Form/Type/UserPickerType.php
index 0141438f6..c9a644aa9 100644
--- a/src/Bundle/ChillMainBundle/Form/Type/UserPickerType.php
+++ b/src/Bundle/ChillMainBundle/Form/Type/UserPickerType.php
@@ -16,6 +16,7 @@ use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Repository\UserACLAwareRepositoryInterface;
use Chill\MainBundle\Repository\UserRepository;
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
+use Chill\MainBundle\Templating\Entity\UserRender;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\OptionsResolver\Options;
@@ -47,16 +48,20 @@ class UserPickerType extends AbstractType
protected UserRepository $userRepository;
+ private UserRender $userRender;
+
public function __construct(
AuthorizationHelper $authorizationHelper,
TokenStorageInterface $tokenStorage,
UserRepository $userRepository,
- UserACLAwareRepositoryInterface $userACLAwareRepository
+ UserACLAwareRepositoryInterface $userACLAwareRepository,
+ UserRender $userRender
) {
$this->authorizationHelper = $authorizationHelper;
$this->tokenStorage = $tokenStorage;
$this->userRepository = $userRepository;
$this->userACLAwareRepository = $userACLAwareRepository;
+ $this->userRender = $userRender;
}
public function configureOptions(OptionsResolver $resolver)
@@ -74,14 +79,19 @@ class UserPickerType extends AbstractType
->setAllowedTypes('having_permissions_group_flag', ['string', 'null'])
->setDefault('class', User::class)
->setDefault('placeholder', 'Choose an user')
- ->setDefault('choice_label', static function (User $u) {
- return $u->getUsername();
+ ->setDefault('choice_label', function (User $u) {
+ return $this->userRender->renderString($u, []);
})
->setDefault('scope', null)
->setAllowedTypes('scope', [Scope::class, 'array', 'null'])
->setNormalizer('choices', function (Options $options) {
+ if ($options['role'] instanceof Role) {
+ $role = $options['role']->getRole();
+ } else {
+ $role = $options['role'];
+ }
$users = $this->userACLAwareRepository
- ->findUsersByReachedACL($options['role']->getRole(), $options['center'], $options['scope'], true);
+ ->findUsersByReachedACL($role, $options['center'], $options['scope'], true);
if (null !== $options['having_permissions_group_flag']) {
return $this->userRepository
diff --git a/src/Bundle/ChillMainBundle/Notification/Mailer.php b/src/Bundle/ChillMainBundle/Notification/Mailer.php
index 84382b4fb..479502060 100644
--- a/src/Bundle/ChillMainBundle/Notification/Mailer.php
+++ b/src/Bundle/ChillMainBundle/Notification/Mailer.php
@@ -18,6 +18,7 @@ use Swift_Message;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Translation\TranslatorInterface;
use Twig\Environment;
+
use function call_user_func;
/**
diff --git a/src/Bundle/ChillMainBundle/Pagination/PaginatorFactory.php b/src/Bundle/ChillMainBundle/Pagination/PaginatorFactory.php
index e02729287..5b3684d3c 100644
--- a/src/Bundle/ChillMainBundle/Pagination/PaginatorFactory.php
+++ b/src/Bundle/ChillMainBundle/Pagination/PaginatorFactory.php
@@ -123,11 +123,11 @@ class PaginatorFactory
{
return array_merge(
$this->router->getContext()->getParameters(),
- // get the route parameters
+ // get the route parameters
$this->requestStack
->getCurrentRequest()
->attributes->get('_route_params'),
- // get the query parameters
+ // get the query parameters
$this->requestStack
->getCurrentRequest()->query->all()
);
diff --git a/src/Bundle/ChillMainBundle/Phonenumber/PhonenumberHelper.php b/src/Bundle/ChillMainBundle/Phonenumber/PhonenumberHelper.php
index 08243e560..0eae018a8 100644
--- a/src/Bundle/ChillMainBundle/Phonenumber/PhonenumberHelper.php
+++ b/src/Bundle/ChillMainBundle/Phonenumber/PhonenumberHelper.php
@@ -17,6 +17,7 @@ use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\ServerException;
use Psr\Cache\CacheItemPoolInterface;
use Psr\Log\LoggerInterface;
+
use function array_key_exists;
use function in_array;
use function json_decode;
@@ -58,13 +59,14 @@ class PhonenumberHelper
$this->logger = $logger;
$this->cachePool = $cachePool;
- if (array_key_exists('twilio_sid', $config)
+ if (
+ array_key_exists('twilio_sid', $config)
&& !empty($config['twilio_sid'])
&& strlen($config['twilio_sid']) > 2
&& array_key_exists('twilio_secret', $config)
&& !empty($config['twilio_secret'])
&& strlen($config['twilio_secret']) > 2
- ) {
+ ) {
$this->twilioClient = new Client([
'auth' => [$config['twilio_sid'], $config['twilio_secret']],
]);
diff --git a/src/Bundle/ChillMainBundle/Repository/AddressReferenceRepository.php b/src/Bundle/ChillMainBundle/Repository/AddressReferenceRepository.php
index 6be52ec85..9cbad91c9 100644
--- a/src/Bundle/ChillMainBundle/Repository/AddressReferenceRepository.php
+++ b/src/Bundle/ChillMainBundle/Repository/AddressReferenceRepository.php
@@ -20,6 +20,7 @@ use Doctrine\ORM\Query\ResultSetMapping;
use Doctrine\ORM\Query\ResultSetMappingBuilder;
use Doctrine\Persistence\ObjectRepository;
use RuntimeException;
+
use function explode;
use function implode;
use function strtr;
diff --git a/src/Bundle/ChillMainBundle/Repository/UserRepository.php b/src/Bundle/ChillMainBundle/Repository/UserRepository.php
index 00556702e..fc3a6e187 100644
--- a/src/Bundle/ChillMainBundle/Repository/UserRepository.php
+++ b/src/Bundle/ChillMainBundle/Repository/UserRepository.php
@@ -17,6 +17,7 @@ use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Doctrine\Persistence\ObjectRepository;
+
use function count;
final class UserRepository implements ObjectRepository
diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/badge.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/badge.scss
index 4018e656b..4d213645e 100644
--- a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/badge.scss
+++ b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/badge.scss
@@ -8,6 +8,10 @@
content: "\f00d"; // fa-times
color: var(--bs-danger);
text-decoration: none;
+ position: absolute;
+ display: block;
+ top: calc(50% - 7px);
+ right: 10px;
}
}
@@ -36,12 +40,24 @@ ul.list-suggest {
}
&.add-items {
li {
- cursor: pointer;
+ position: relative;
+ span {
+ cursor: pointer;
+ padding-left: 2rem;
+ }
& > span:before {
font: normal normal normal 14px/1 ForkAwesome;
margin-right: 0.5em;
content: "\f067"; // fa-plus
color: var(--bs-success);
+ position: absolute;
+ display: block;
+ top: 50%;
+ left: .75rem;
+ -webkit-transform: translateY(-50%);
+ -moz-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
}
& span:hover {
color: $chill-l-gray;
@@ -50,7 +66,10 @@ ul.list-suggest {
}
&.remove-items {
li {
- a {
+ position: relative;
+ span {
+ display: block;
+ padding-right: .75rem;
@include remove_link;
}
}
@@ -60,7 +79,14 @@ ul.list-suggest {
/// manage remove link if it isn't a list but a title
/// (cfr. in Vue AccompanyingCourseWorkEdit)
div.item-title {
- a {
- @include remove_link;
+ span {
+ display: block;
+ position: relative;
+ padding: 0.5em 0.8em;
+ background-color: $chill-llight-gray;
+ border-radius: .25rem;
+ &.removable {
+ @include remove_link;
+ }
}
}
diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/record_actions.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/record_actions.scss
index bdb3c60a6..928468715 100644
--- a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/record_actions.scss
+++ b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/record_actions.scss
@@ -33,6 +33,14 @@ ul.record_actions {
margin-right: auto;
}
}
+
+ ul.dropdown-menu {
+ z-index: 2000;
+ li {
+ display: block;
+ margin-right: 0;
+ }
+ }
}
.sticky-form-buttons {
margin-top: 4em;
diff --git a/src/Bundle/ChillMainBundle/Routing/MenuComposer.php b/src/Bundle/ChillMainBundle/Routing/MenuComposer.php
index a94cf41f3..763eab0e5 100644
--- a/src/Bundle/ChillMainBundle/Routing/MenuComposer.php
+++ b/src/Bundle/ChillMainBundle/Routing/MenuComposer.php
@@ -16,6 +16,7 @@ use Knp\Menu\ItemInterface;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Translation\TranslatorInterface;
+
use function array_key_exists;
use function array_merge;
use function array_values;
diff --git a/src/Bundle/ChillMainBundle/Search/AbstractSearch.php b/src/Bundle/ChillMainBundle/Search/AbstractSearch.php
index adadc3422..099c4e438 100644
--- a/src/Bundle/ChillMainBundle/Search/AbstractSearch.php
+++ b/src/Bundle/ChillMainBundle/Search/AbstractSearch.php
@@ -12,6 +12,7 @@ declare(strict_types=1);
namespace Chill\MainBundle\Search;
use DateTime;
+
use function array_key_exists;
use function strpos;
diff --git a/src/Bundle/ChillMainBundle/Search/Entity/SearchUserApiProvider.php b/src/Bundle/ChillMainBundle/Search/Entity/SearchUserApiProvider.php
index 5a68fab37..5c3c6b057 100644
--- a/src/Bundle/ChillMainBundle/Search/Entity/SearchUserApiProvider.php
+++ b/src/Bundle/ChillMainBundle/Search/Entity/SearchUserApiProvider.php
@@ -14,6 +14,7 @@ namespace Chill\MainBundle\Search\Entity;
use Chill\MainBundle\Repository\UserRepository;
use Chill\MainBundle\Search\SearchApiInterface;
use Chill\MainBundle\Search\SearchApiQuery;
+
use function array_map;
use function in_array;
diff --git a/src/Bundle/ChillMainBundle/Search/SearchApi.php b/src/Bundle/ChillMainBundle/Search/SearchApi.php
index b0740b383..7436b3303 100644
--- a/src/Bundle/ChillMainBundle/Search/SearchApi.php
+++ b/src/Bundle/ChillMainBundle/Search/SearchApi.php
@@ -16,6 +16,7 @@ use Chill\MainBundle\Serializer\Model\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Query\ResultSetMappingBuilder;
+
use function array_map;
use function array_merge;
use function count;
diff --git a/src/Bundle/ChillMainBundle/Search/SearchApiNoQueryException.php b/src/Bundle/ChillMainBundle/Search/SearchApiNoQueryException.php
index 46dfc759b..1f3a1b3df 100644
--- a/src/Bundle/ChillMainBundle/Search/SearchApiNoQueryException.php
+++ b/src/Bundle/ChillMainBundle/Search/SearchApiNoQueryException.php
@@ -13,6 +13,7 @@ namespace Chill\MainBundle\Search;
use RuntimeException;
use Throwable;
+
use function implode;
class SearchApiNoQueryException extends RuntimeException
diff --git a/src/Bundle/ChillMainBundle/Search/SearchProvider.php b/src/Bundle/ChillMainBundle/Search/SearchProvider.php
index 61eb3fcd8..efae25751 100644
--- a/src/Bundle/ChillMainBundle/Search/SearchProvider.php
+++ b/src/Bundle/ChillMainBundle/Search/SearchProvider.php
@@ -276,8 +276,10 @@ class SearchProvider
//remove from search pattern
$this->mustBeExtracted[] = $matches[0][$key];
//strip parenthesis
- if (mb_substr($match, 0, 1) === '"'
- && mb_substr($match, mb_strlen($match) - 1) === '"') {
+ if (
+ mb_substr($match, 0, 1) === '"'
+ && mb_substr($match, mb_strlen($match) - 1) === '"'
+ ) {
$match = trim(mb_substr($match, 1, mb_strlen($match) - 2));
}
$terms[$matches[1][$key]] = $match;
diff --git a/src/Bundle/ChillMainBundle/Search/Utils/ExtractDateFromPattern.php b/src/Bundle/ChillMainBundle/Search/Utils/ExtractDateFromPattern.php
index 058bfe070..6035744e1 100644
--- a/src/Bundle/ChillMainBundle/Search/Utils/ExtractDateFromPattern.php
+++ b/src/Bundle/ChillMainBundle/Search/Utils/ExtractDateFromPattern.php
@@ -12,6 +12,7 @@ declare(strict_types=1);
namespace Chill\MainBundle\Search\Utils;
use DateTimeImmutable;
+
use function preg_match_all;
use function strtr;
use function trim;
diff --git a/src/Bundle/ChillMainBundle/Search/Utils/ExtractPhonenumberFromPattern.php b/src/Bundle/ChillMainBundle/Search/Utils/ExtractPhonenumberFromPattern.php
index caad6d093..b6286fa35 100644
--- a/src/Bundle/ChillMainBundle/Search/Utils/ExtractPhonenumberFromPattern.php
+++ b/src/Bundle/ChillMainBundle/Search/Utils/ExtractPhonenumberFromPattern.php
@@ -12,6 +12,7 @@ declare(strict_types=1);
namespace Chill\MainBundle\Search\Utils;
use LogicException;
+
use function count;
use function implode;
use function preg_match;
diff --git a/src/Bundle/ChillMainBundle/Security/Authorization/AbstractChillVoter.php b/src/Bundle/ChillMainBundle/Security/Authorization/AbstractChillVoter.php
index 2cca61e9f..2392457b8 100644
--- a/src/Bundle/ChillMainBundle/Security/Authorization/AbstractChillVoter.php
+++ b/src/Bundle/ChillMainBundle/Security/Authorization/AbstractChillVoter.php
@@ -13,8 +13,10 @@ namespace Chill\MainBundle\Security\Authorization;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
+
use function get_class;
use function in_array;
+
use const E_USER_DEPRECATED;
/**
diff --git a/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php b/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php
index de7bff9ab..c1db57b7f 100644
--- a/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php
+++ b/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php
@@ -23,6 +23,7 @@ use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Security\Core\User\UserInterface;
use Traversable;
use UnexpectedValueException;
+
use function array_merge;
use function get_class;
diff --git a/src/Bundle/ChillMainBundle/Security/Authorization/DefaultVoterHelper.php b/src/Bundle/ChillMainBundle/Security/Authorization/DefaultVoterHelper.php
index 95f070b3b..01f04acd4 100644
--- a/src/Bundle/ChillMainBundle/Security/Authorization/DefaultVoterHelper.php
+++ b/src/Bundle/ChillMainBundle/Security/Authorization/DefaultVoterHelper.php
@@ -13,6 +13,7 @@ namespace Chill\MainBundle\Security\Authorization;
use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Security\Resolver\CenterResolverDispatcherInterface;
+
use function in_array;
final class DefaultVoterHelper implements VoterHelperInterface
diff --git a/src/Bundle/ChillMainBundle/Security/ParentRoleHelper.php b/src/Bundle/ChillMainBundle/Security/ParentRoleHelper.php
index 137c774b2..317ec4cd1 100644
--- a/src/Bundle/ChillMainBundle/Security/ParentRoleHelper.php
+++ b/src/Bundle/ChillMainBundle/Security/ParentRoleHelper.php
@@ -14,6 +14,7 @@ namespace Chill\MainBundle\Security;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Security\Core\Role\RoleHierarchyInterface;
+
use function array_keys;
use function in_array;
diff --git a/src/Bundle/ChillMainBundle/Security/PasswordRecover/PasswordRecoverVoter.php b/src/Bundle/ChillMainBundle/Security/PasswordRecover/PasswordRecoverVoter.php
index 40787fe74..a47443486 100644
--- a/src/Bundle/ChillMainBundle/Security/PasswordRecover/PasswordRecoverVoter.php
+++ b/src/Bundle/ChillMainBundle/Security/PasswordRecover/PasswordRecoverVoter.php
@@ -15,6 +15,7 @@ use Chill\MainBundle\Entity\User;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
+
use function in_array;
class PasswordRecoverVoter extends Voter
diff --git a/src/Bundle/ChillMainBundle/Security/PasswordRecover/RecoverPasswordHelper.php b/src/Bundle/ChillMainBundle/Security/PasswordRecover/RecoverPasswordHelper.php
index e6f3db0e7..1244e2a61 100644
--- a/src/Bundle/ChillMainBundle/Security/PasswordRecover/RecoverPasswordHelper.php
+++ b/src/Bundle/ChillMainBundle/Security/PasswordRecover/RecoverPasswordHelper.php
@@ -15,6 +15,7 @@ use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Notification\Mailer;
use DateTimeInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
+
use function array_merge;
class RecoverPasswordHelper
diff --git a/src/Bundle/ChillMainBundle/Security/PasswordRecover/TokenManager.php b/src/Bundle/ChillMainBundle/Security/PasswordRecover/TokenManager.php
index 3d9eb29d2..5d3673b84 100644
--- a/src/Bundle/ChillMainBundle/Security/PasswordRecover/TokenManager.php
+++ b/src/Bundle/ChillMainBundle/Security/PasswordRecover/TokenManager.php
@@ -17,6 +17,7 @@ use DateTimeImmutable;
use DateTimeInterface;
use Psr\Log\LoggerInterface;
use UnexpectedValueException;
+
use function bin2hex;
use function hash;
use function hex2bin;
diff --git a/src/Bundle/ChillMainBundle/Security/Resolver/CenterResolverManager.php b/src/Bundle/ChillMainBundle/Security/Resolver/CenterResolverManager.php
index 2dfe1ecf2..dc873ee79 100644
--- a/src/Bundle/ChillMainBundle/Security/Resolver/CenterResolverManager.php
+++ b/src/Bundle/ChillMainBundle/Security/Resolver/CenterResolverManager.php
@@ -13,6 +13,7 @@ namespace Chill\MainBundle\Security\Resolver;
use Chill\MainBundle\Entity\Center;
use UnexpectedValueException;
+
use function get_class;
use function is_array;
diff --git a/src/Bundle/ChillMainBundle/Serializer/Normalizer/AddressNormalizer.php b/src/Bundle/ChillMainBundle/Serializer/Normalizer/AddressNormalizer.php
index fd250e967..f66eb4de6 100644
--- a/src/Bundle/ChillMainBundle/Serializer/Normalizer/AddressNormalizer.php
+++ b/src/Bundle/ChillMainBundle/Serializer/Normalizer/AddressNormalizer.php
@@ -48,8 +48,9 @@ class AddressNormalizer implements ContextAwareNormalizerInterface, NormalizerAw
/**
* @param Address $address
+ * @param null|string $format
*/
- public function normalize($address, ?string $format = null, array $context = [])
+ public function normalize($address, $format = null, array $context = [])
{
if ($address instanceof Address) {
$text = $address->isNoAddress() ? '' : $address->getStreet() . ', ' . $address->getStreetNumber();
@@ -118,7 +119,7 @@ class AddressNormalizer implements ContextAwareNormalizerInterface, NormalizerAw
throw new UnexpectedValueException();
}
- public function supportsNormalization($data, ?string $format = null, array $context = []): bool
+ public function supportsNormalization($data, $format = null, array $context = []): bool
{
if ('json' === $format) {
return $data instanceof Address;
diff --git a/src/Bundle/ChillMainBundle/Serializer/Normalizer/CenterNormalizer.php b/src/Bundle/ChillMainBundle/Serializer/Normalizer/CenterNormalizer.php
index cbe712ee8..c4d7fa871 100644
--- a/src/Bundle/ChillMainBundle/Serializer/Normalizer/CenterNormalizer.php
+++ b/src/Bundle/ChillMainBundle/Serializer/Normalizer/CenterNormalizer.php
@@ -17,6 +17,7 @@ use Symfony\Component\Serializer\Exception\InvalidArgumentException;
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
+
use function array_key_exists;
class CenterNormalizer implements DenormalizerInterface, NormalizerInterface
@@ -28,7 +29,7 @@ class CenterNormalizer implements DenormalizerInterface, NormalizerInterface
$this->repository = $repository;
}
- public function denormalize($data, string $type, ?string $format = null, array $context = [])
+ public function denormalize($data, $type, $format = null, array $context = [])
{
if (false === array_key_exists('type', $data)) {
throw new InvalidArgumentException('missing "type" key in data');
@@ -51,7 +52,7 @@ class CenterNormalizer implements DenormalizerInterface, NormalizerInterface
return $center;
}
- public function normalize($center, ?string $format = null, array $context = [])
+ public function normalize($center, $format = null, array $context = [])
{
/** @var Center $center */
return [
@@ -61,12 +62,12 @@ class CenterNormalizer implements DenormalizerInterface, NormalizerInterface
];
}
- public function supportsDenormalization($data, string $type, ?string $format = null)
+ public function supportsDenormalization($data, $type, $format = null)
{
return Center::class === $type;
}
- public function supportsNormalization($data, ?string $format = null): bool
+ public function supportsNormalization($data, $format = null): bool
{
return $data instanceof Center && 'json' === $format;
}
diff --git a/src/Bundle/ChillMainBundle/Serializer/Normalizer/CollectionNormalizer.php b/src/Bundle/ChillMainBundle/Serializer/Normalizer/CollectionNormalizer.php
index 0c80e0439..7ca4d563c 100644
--- a/src/Bundle/ChillMainBundle/Serializer/Normalizer/CollectionNormalizer.php
+++ b/src/Bundle/ChillMainBundle/Serializer/Normalizer/CollectionNormalizer.php
@@ -22,8 +22,9 @@ class CollectionNormalizer implements NormalizerAwareInterface, NormalizerInterf
/**
* @param Collection $collection
+ * @param null|string $format
*/
- public function normalize($collection, ?string $format = null, array $context = [])
+ public function normalize($collection, $format = null, array $context = [])
{
$paginator = $collection->getPaginator();
@@ -40,7 +41,7 @@ class CollectionNormalizer implements NormalizerAwareInterface, NormalizerInterf
];
}
- public function supportsNormalization($data, ?string $format = null): bool
+ public function supportsNormalization($data, $format = null): bool
{
return $data instanceof Collection;
}
diff --git a/src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php b/src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php
index 3050ad268..70958d5a9 100644
--- a/src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php
+++ b/src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php
@@ -17,8 +17,10 @@ use DateTimeInterface;
use IntlDateFormatter;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\HttpFoundation\RequestStack;
+use Symfony\Component\Serializer\Exception\UnexpectedValueException;
use Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
+
use function array_key_exists;
use function is_array;
@@ -34,20 +36,25 @@ class DateNormalizer implements ContextAwareNormalizerInterface, DenormalizerInt
$this->parameterBag = $parameterBag;
}
- public function denormalize($data, string $type, ?string $format = null, array $context = [])
+ public function denormalize($data, $type, $format = null, array $context = [])
{
+ if (null === $data) {
+ return null;
+ }
+
switch ($type) {
case DateTime::class:
return DateTime::createFromFormat(DateTimeInterface::ISO8601, $data['datetime']);
case DateTimeInterface::class:
case DateTimeImmutable::class:
- default:
return DateTimeImmutable::createFromFormat(DateTimeInterface::ISO8601, $data['datetime']);
}
+
+ throw new UnexpectedValueException();
}
- public function normalize($date, ?string $format = null, array $context = [])
+ public function normalize($date, $format = null, array $context = [])
{
/** @var DateTimeInterface $date */
switch ($format) {
@@ -84,7 +91,7 @@ class DateNormalizer implements ContextAwareNormalizerInterface, DenormalizerInt
}
}
- public function supportsDenormalization($data, string $type, ?string $format = null): bool
+ public function supportsDenormalization($data, $type, $format = null): bool
{
return DateTimeInterface::class === $type
|| DateTime::class === $type
@@ -92,7 +99,7 @@ class DateNormalizer implements ContextAwareNormalizerInterface, DenormalizerInt
|| (is_array($data) && array_key_exists('datetime', $data));
}
- public function supportsNormalization($data, ?string $format = null, array $context = []): bool
+ public function supportsNormalization($data, $format = null, array $context = []): bool
{
if ('json' === $format) {
return $data instanceof DateTimeInterface;
diff --git a/src/Bundle/ChillMainBundle/Serializer/Normalizer/DiscriminatedObjectDenormalizer.php b/src/Bundle/ChillMainBundle/Serializer/Normalizer/DiscriminatedObjectDenormalizer.php
index f31b5d60d..77f14c8da 100644
--- a/src/Bundle/ChillMainBundle/Serializer/Normalizer/DiscriminatedObjectDenormalizer.php
+++ b/src/Bundle/ChillMainBundle/Serializer/Normalizer/DiscriminatedObjectDenormalizer.php
@@ -16,6 +16,7 @@ use Symfony\Component\Serializer\Exception\RuntimeException;
use Symfony\Component\Serializer\Normalizer\ContextAwareDenormalizerInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait;
+
use function count;
use function implode;
@@ -37,7 +38,7 @@ class DiscriminatedObjectDenormalizer implements ContextAwareDenormalizerInterfa
*/
public const TYPE = '@multi';
- public function denormalize($data, string $type, ?string $format = null, array $context = [])
+ public function denormalize($data, $type, $format = null, array $context = [])
{
foreach ($context[self::ALLOWED_TYPES] as $localType) {
if ($this->denormalizer->supportsDenormalization($data, $localType, $format)) {
@@ -53,7 +54,7 @@ class DiscriminatedObjectDenormalizer implements ContextAwareDenormalizerInterfa
'ALLOWED_TYPES: %s', implode(', ', $context[self::ALLOWED_TYPES])));
}
- public function supportsDenormalization($data, string $type, ?string $format = null, array $context = [])
+ public function supportsDenormalization($data, $type, $format = null, array $context = [])
{
if (self::TYPE !== $type) {
return false;
diff --git a/src/Bundle/ChillMainBundle/Serializer/Normalizer/DoctrineExistingEntityNormalizer.php b/src/Bundle/ChillMainBundle/Serializer/Normalizer/DoctrineExistingEntityNormalizer.php
index aa9d12e24..1cf94ac9f 100644
--- a/src/Bundle/ChillMainBundle/Serializer/Normalizer/DoctrineExistingEntityNormalizer.php
+++ b/src/Bundle/ChillMainBundle/Serializer/Normalizer/DoctrineExistingEntityNormalizer.php
@@ -16,6 +16,7 @@ use Doctrine\ORM\Mapping\ClassMetadata;
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
+
use function array_key_exists;
use function count;
use function is_array;
@@ -32,7 +33,7 @@ class DoctrineExistingEntityNormalizer implements DenormalizerInterface
$this->serializerMetadataFactory = $serializerMetadataFactory;
}
- public function denormalize($data, string $type, ?string $format = null, array $context = [])
+ public function denormalize($data, $type, $format = null, array $context = [])
{
if (array_key_exists(AbstractNormalizer::OBJECT_TO_POPULATE, $context)) {
return $context[AbstractNormalizer::OBJECT_TO_POPULATE];
@@ -42,7 +43,7 @@ class DoctrineExistingEntityNormalizer implements DenormalizerInterface
->find($data['id']);
}
- public function supportsDenormalization($data, string $type, ?string $format = null)
+ public function supportsDenormalization($data, $type, $format = null)
{
if (false === is_array($data)) {
return false;
diff --git a/src/Bundle/ChillMainBundle/Serializer/Normalizer/PointNormalizer.php b/src/Bundle/ChillMainBundle/Serializer/Normalizer/PointNormalizer.php
index c8c532802..479cc6864 100644
--- a/src/Bundle/ChillMainBundle/Serializer/Normalizer/PointNormalizer.php
+++ b/src/Bundle/ChillMainBundle/Serializer/Normalizer/PointNormalizer.php
@@ -13,14 +13,14 @@ namespace Chill\MainBundle\Serializer\Normalizer;
use Chill\MainBundle\Doctrine\Model\Point;
use Symfony\Component\Serializer\Exception\InvalidArgumentException;
-
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
+
use function count;
use function is_array;
class PointNormalizer implements DenormalizerInterface
{
- public function denormalize($data, string $type, ?string $format = null, array $context = [])
+ public function denormalize($data, $type, $format = null, array $context = [])
{
if (!is_array($data)) {
throw new InvalidArgumentException('point data is not an array. It should be an array of 2 coordinates.');
@@ -33,7 +33,7 @@ class PointNormalizer implements DenormalizerInterface
return Point::fromLonLat($data[0], $data[1]);
}
- public function supportsDenormalization($data, string $type, ?string $format = null): bool
+ public function supportsDenormalization($data, $type, $format = null): bool
{
return Point::class === $type;
}
diff --git a/src/Bundle/ChillMainBundle/Serializer/Normalizer/UserNormalizer.php b/src/Bundle/ChillMainBundle/Serializer/Normalizer/UserNormalizer.php
index d8c616d82..082491bd0 100644
--- a/src/Bundle/ChillMainBundle/Serializer/Normalizer/UserNormalizer.php
+++ b/src/Bundle/ChillMainBundle/Serializer/Normalizer/UserNormalizer.php
@@ -40,7 +40,7 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware
$this->userRender = $userRender;
}
- public function normalize($user, ?string $format = null, array $context = [])
+ public function normalize($user, $format = null, array $context = [])
{
/** @var User $user */
$userJobContext = array_merge(
@@ -77,7 +77,7 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware
];
}
- public function supportsNormalization($data, ?string $format = null, array $context = []): bool
+ public function supportsNormalization($data, $format = null, array $context = []): bool
{
if ($data instanceof User && ('json' === $format || 'docgen' === $format)) {
return true;
diff --git a/src/Bundle/ChillMainBundle/Templating/ChillMarkdownRenderExtension.php b/src/Bundle/ChillMainBundle/Templating/ChillMarkdownRenderExtension.php
index 55212c64f..9bb29c21d 100644
--- a/src/Bundle/ChillMainBundle/Templating/ChillMarkdownRenderExtension.php
+++ b/src/Bundle/ChillMainBundle/Templating/ChillMarkdownRenderExtension.php
@@ -13,7 +13,6 @@ namespace Chill\MainBundle\Templating;
use Parsedown;
use Twig\Extension\AbstractExtension;
-
use Twig\TwigFilter;
/**
diff --git a/src/Bundle/ChillMainBundle/Templating/ChillTwigHelper.php b/src/Bundle/ChillMainBundle/Templating/ChillTwigHelper.php
index 4bc0cffd4..782522760 100644
--- a/src/Bundle/ChillMainBundle/Templating/ChillTwigHelper.php
+++ b/src/Bundle/ChillMainBundle/Templating/ChillTwigHelper.php
@@ -15,6 +15,7 @@ use DateTimeInterface;
use Twig\Environment;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
+
use function array_merge;
class ChillTwigHelper extends AbstractExtension
diff --git a/src/Bundle/ChillMainBundle/Templating/Entity/AddressRender.php b/src/Bundle/ChillMainBundle/Templating/Entity/AddressRender.php
index 264f11688..1af5607c9 100644
--- a/src/Bundle/ChillMainBundle/Templating/Entity/AddressRender.php
+++ b/src/Bundle/ChillMainBundle/Templating/Entity/AddressRender.php
@@ -13,6 +13,7 @@ namespace Chill\MainBundle\Templating\Entity;
use Chill\MainBundle\Entity\Address;
use Symfony\Component\Templating\EngineInterface;
+
use function array_merge;
use function strtr;
diff --git a/src/Bundle/ChillMainBundle/Templating/Entity/CommentRender.php b/src/Bundle/ChillMainBundle/Templating/Entity/CommentRender.php
index a6285d26b..aa2401c1e 100644
--- a/src/Bundle/ChillMainBundle/Templating/Entity/CommentRender.php
+++ b/src/Bundle/ChillMainBundle/Templating/Entity/CommentRender.php
@@ -14,6 +14,7 @@ namespace Chill\MainBundle\Templating\Entity;
use Chill\MainBundle\Entity\Embeddable\CommentEmbeddable;
use Chill\MainBundle\Repository\UserRepository;
use Symfony\Component\Templating\EngineInterface;
+
use function array_merge;
class CommentRender extends AbstractChillEntityRender
diff --git a/src/Bundle/ChillMainBundle/Templating/Entity/UserRender.php b/src/Bundle/ChillMainBundle/Templating/Entity/UserRender.php
index 9247b8ffb..1fc83c2db 100644
--- a/src/Bundle/ChillMainBundle/Templating/Entity/UserRender.php
+++ b/src/Bundle/ChillMainBundle/Templating/Entity/UserRender.php
@@ -14,6 +14,7 @@ namespace Chill\MainBundle\Templating\Entity;
use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Templating\TranslatableStringHelper;
use Symfony\Component\Templating\EngineInterface;
+
use function array_merge;
class UserRender implements ChillEntityRenderInterface
diff --git a/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelper.php b/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelper.php
index 82b5f8295..64694285e 100644
--- a/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelper.php
+++ b/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelper.php
@@ -15,6 +15,7 @@ use Chill\MainBundle\Form\Type\Listing\FilterOrderType;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpFoundation\RequestStack;
+
use function array_merge;
use function count;
diff --git a/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperBuilder.php b/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperBuilder.php
index 9e6cb813c..38e2f3542 100644
--- a/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperBuilder.php
+++ b/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperBuilder.php
@@ -55,11 +55,13 @@ class FilterOrderHelperBuilder
$helper->setSearchBox($this->searchBoxFields);
- foreach ($this->checkboxes as $name => [
- 'choices' => $choices,
- 'default' => $default,
- 'trans' => $trans,
- ]) {
+ foreach (
+ $this->checkboxes as $name => [
+ 'choices' => $choices,
+ 'default' => $default,
+ 'trans' => $trans,
+ ]
+ ) {
$helper->addCheckbox($name, $choices, $default, $trans);
}
diff --git a/src/Bundle/ChillMainBundle/Templating/TranslatableStringHelper.php b/src/Bundle/ChillMainBundle/Templating/TranslatableStringHelper.php
index 88bb8f89d..66687711c 100644
--- a/src/Bundle/ChillMainBundle/Templating/TranslatableStringHelper.php
+++ b/src/Bundle/ChillMainBundle/Templating/TranslatableStringHelper.php
@@ -14,6 +14,7 @@ namespace Chill\MainBundle\Templating;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Contracts\Translation\TranslatorInterface;
+
use function array_key_exists;
final class TranslatableStringHelper implements TranslatableStringHelperInterface
diff --git a/src/Bundle/ChillMainBundle/Templating/Widget/WidgetRenderingTwig.php b/src/Bundle/ChillMainBundle/Templating/Widget/WidgetRenderingTwig.php
index b8b751b81..dd3b8ee7f 100644
--- a/src/Bundle/ChillMainBundle/Templating/Widget/WidgetRenderingTwig.php
+++ b/src/Bundle/ChillMainBundle/Templating/Widget/WidgetRenderingTwig.php
@@ -16,6 +16,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Twig\Environment;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
+
use function array_key_exists;
use function ksort;
diff --git a/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php b/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php
index f5b26b353..9563ed4bf 100644
--- a/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php
+++ b/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php
@@ -15,6 +15,7 @@ use Doctrine\ORM\AbstractQuery;
use Doctrine\ORM\QueryBuilder;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Traversable;
+
use function call_user_func;
use function count;
use function is_array;
diff --git a/src/Bundle/ChillMainBundle/Test/Export/AbstractExportTest.php b/src/Bundle/ChillMainBundle/Test/Export/AbstractExportTest.php
index 99e9779f1..7a888eb01 100644
--- a/src/Bundle/ChillMainBundle/Test/Export/AbstractExportTest.php
+++ b/src/Bundle/ChillMainBundle/Test/Export/AbstractExportTest.php
@@ -19,6 +19,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\Role\Role;
use Traversable;
+
use function call_user_func;
use function count;
use function is_array;
diff --git a/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php b/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php
index 78cf0083a..d0f4eaa97 100644
--- a/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php
+++ b/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php
@@ -14,6 +14,7 @@ namespace Chill\MainBundle\Test\Export;
use Doctrine\ORM\QueryBuilder;
use Exception;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
+
use function count;
use function get_class;
use function is_array;
@@ -31,7 +32,7 @@ abstract class AbstractFilterTest extends KernelTestCase
*/
protected $prophet;
- public function setUp()
+ protected function setUp(): void
{
$this->prepareProphet();
}
diff --git a/src/Bundle/ChillMainBundle/Tests/Authorization/ParentRoleHelperTest.php b/src/Bundle/ChillMainBundle/Tests/Authorization/ParentRoleHelperTest.php
index de3b95a31..69a3ac733 100644
--- a/src/Bundle/ChillMainBundle/Tests/Authorization/ParentRoleHelperTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Authorization/ParentRoleHelperTest.php
@@ -23,7 +23,7 @@ final class ParentRoleHelperTest extends KernelTestCase
{
private ParentRoleHelper $parentRoleHelper;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
$this->parentRoleHelper = self::$container->get(ParentRoleHelper::class);
diff --git a/src/Bundle/ChillMainBundle/Tests/Controller/AddressControllerTest.php b/src/Bundle/ChillMainBundle/Tests/Controller/AddressControllerTest.php
index b36a655c5..441a323ac 100644
--- a/src/Bundle/ChillMainBundle/Tests/Controller/AddressControllerTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Controller/AddressControllerTest.php
@@ -26,7 +26,7 @@ final class AddressControllerTest extends \Symfony\Bundle\FrameworkBundle\Test\W
private KernelBrowser $client;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
$this->client = $this->getClientAuthenticated();
diff --git a/src/Bundle/ChillMainBundle/Tests/Controller/UserApiControllerTest.php b/src/Bundle/ChillMainBundle/Tests/Controller/UserApiControllerTest.php
index 813e9bc40..d96f9647a 100644
--- a/src/Bundle/ChillMainBundle/Tests/Controller/UserApiControllerTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Controller/UserApiControllerTest.php
@@ -55,6 +55,15 @@ final class UserApiControllerTest extends WebTestCase
return $data['results'][0];
}
+ public function testUserCurrentLocation()
+ {
+ $client = $this->getClientAuthenticated();
+
+ $client->request(Request::METHOD_GET, '/api/1.0/main/user-current-location.json');
+
+ $this->assertResponseIsSuccessful();
+ }
+
public function testWhoami()
{
$client = $this->getClientAuthenticated();
diff --git a/src/Bundle/ChillMainBundle/Tests/Controller/UserControllerTest.php b/src/Bundle/ChillMainBundle/Tests/Controller/UserControllerTest.php
index 00bec29f6..f5d76ef8f 100644
--- a/src/Bundle/ChillMainBundle/Tests/Controller/UserControllerTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Controller/UserControllerTest.php
@@ -26,7 +26,7 @@ final class UserControllerTest extends WebTestCase
private array $toDelete = [];
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
@@ -37,7 +37,7 @@ final class UserControllerTest extends WebTestCase
]);
}
- protected function tearDown()
+ protected function tearDown(): void
{
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
diff --git a/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php b/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php
index 645dff22e..94266077a 100644
--- a/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php
@@ -16,13 +16,23 @@ use Chill\MainBundle\Export\ExportInterface;
use Chill\MainBundle\Export\ExportManager;
use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\Export\ExportType;
+use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
+use Chill\MainBundle\Test\PrepareCenterTrait;
+use Chill\MainBundle\Test\PrepareScopeTrait;
+use Chill\MainBundle\Test\PrepareUserTrait;
+use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\QueryBuilder;
use Prophecy\Argument;
+use Prophecy\Prophet;
+use Psr\Log\LoggerInterface;
use RuntimeException;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\HttpFoundation\Response;
+use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
+use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use Symfony\Component\Security\Core\Role\Role;
+use Symfony\Component\Security\Core\User\UserInterface;
use function count;
/**
@@ -33,23 +43,20 @@ use function count;
*/
final class ExportManagerTest extends KernelTestCase
{
- use \Chill\MainBundle\Test\PrepareCenterTrait;
- use \Chill\MainBundle\Test\PrepareScopeTrait;
- use \Chill\MainBundle\Test\PrepareUserTrait;
+ use PrepareCenterTrait;
+ use PrepareScopeTrait;
+ use PrepareUserTrait;
- /**
- * @var Prophecy\Prophet
- */
- private $prophet;
+ private Prophet $prophet;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
$this->prophet = new \Prophecy\Prophet();
}
- public function tearDown()
+ protected function tearDown(): void
{
$this->prophet->checkPredictions();
}
@@ -379,11 +386,10 @@ final class ExportManagerTest extends KernelTestCase
$this->assertInstanceof('Chill\MainBundle\Export\AggregatorInterface', $obtained);
}
- /**
- * @expectedException \RuntimeException
- */
public function testGetAggregatorNonExistant()
{
+ $this->expectException(RuntimeException::class);
+
$exportManager = $this->createExportManager();
$exportManager->getAggregator('non existing');
@@ -438,11 +444,10 @@ final class ExportManagerTest extends KernelTestCase
$this->assertInstanceof(ExportInterface::class, $obtained);
}
- /**
- * @expectedException \RuntimeException
- */
public function testGetExportNonExistant()
{
+ $this->expectException(RuntimeException::class);
+
$exportManager = $this->createExportManager();
$exportManager->getExport('non existing');
@@ -478,11 +483,10 @@ final class ExportManagerTest extends KernelTestCase
$this->assertInstanceof('Chill\MainBundle\Export\FilterInterface', $obtained);
}
- /**
- * @expectedException \RuntimeException
- */
public function testGetFilterNonExistant()
{
+ $this->expectException(RuntimeException::class);
+
$exportManager = $this->createExportManager();
$exportManager->getFilter('non existing');
@@ -640,11 +644,10 @@ final class ExportManagerTest extends KernelTestCase
$this->assertFalse($result);
}
- /**
- * @expectedException \RuntimeException
- */
public function testNonExistingFormatter()
{
+ $this->expectException(RuntimeException::class);
+
$exportManager = $this->createExportManager();
$exportManager->getFormatter('non existing');
@@ -656,35 +659,28 @@ final class ExportManagerTest extends KernelTestCase
* If null is provided for an element, this is replaced by the equivalent
* from the container; if the user provided is null, this is replaced by the
* user 'center a_social' from database.
- *
- * @param \Psr\Log\LoggerInterface $logger
- * @param \Doctrine\ORM\EntityManagerInterface $em
- * @param \Symfony\Component\Security\Core\Authorization\AuthorizationChecker $authorizationChecker
- * @param \Chill\MainBundle\Security\Authorization\AuthorizationHelper $authorizationHelper
- * @param \Symfony\Component\Security\Core\User\UserInterface $user
- *
- * @return ExportManager
*/
protected function createExportManager(
- ?\Psr\Log\LoggerInterface $logger = null,
- ?\Doctrine\ORM\EntityManagerInterface $em = null,
+ ?LoggerInterface $logger = null,
+ ?EntityManagerInterface $em = null,
?AuthorizationCheckerInterface $authorizationChecker = null,
- ?\Chill\MainBundle\Security\Authorization\AuthorizationHelper $authorizationHelper = null,
- ?\Symfony\Component\Security\Core\User\UserInterface $user = null
- ) {
- $localUser = null === $user ? self::$container->get('doctrine.orm.entity_manager')
+ ?AuthorizationHelper $authorizationHelper = null,
+ ?UserInterface $user = null
+ ): ExportManager {
+ $localUser = $user ?? self::$container->get(
+ 'doctrine.orm.entity_manager'
+ )
->getRepository('ChillMainBundle:User')
- ->findOneBy(['username' => 'center a_social']) :
- $user;
- $token = new \Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken($localUser, 'password', 'provider');
- $tokenStorage = new \Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage();
+ ->findOneBy(['username' => 'center a_social']);
+ $token = new UsernamePasswordToken($localUser, 'password', 'provider');
+ $tokenStorage = new TokenStorage();
$tokenStorage->setToken($token);
return new ExportManager(
- null === $logger ? self::$container->get('logger') : $logger,
- null === $em ? self::$container->get('doctrine.orm.entity_manager') : $em,
- null === $authorizationChecker ? self::$container->get('security.authorization_checker') : $authorizationChecker,
- null === $authorizationHelper ? self::$container->get('chill.main.security.authorization.helper') : $authorizationHelper,
+ $logger ?? self::$container->get('logger'),
+ $em ?? self::$container->get('doctrine.orm.entity_manager'),
+ $authorizationChecker ?? self::$container->get('security.authorization_checker'),
+ $authorizationHelper ?? self::$container->get('chill.main.security.authorization.helper'),
$tokenStorage
);
}
diff --git a/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php b/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php
index c527a1f6a..ca9eef6c6 100644
--- a/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php
@@ -27,7 +27,7 @@ final class PageTest extends KernelTestCase
protected $prophet;
- public function setUp()
+ protected function setUp(): void
{
$this->prophet = new \Prophecy\Prophet();
}
diff --git a/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php b/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php
index 2a92ef222..23bd4d890 100644
--- a/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php
@@ -28,7 +28,7 @@ final class PaginatorTest extends KernelTestCase
protected $prophet;
- public function setUp()
+ protected function setUp(): void
{
$this->prophet = new \Prophecy\Prophet();
}
diff --git a/src/Bundle/ChillMainBundle/Tests/Routing/Loader/RouteLoaderTest.php b/src/Bundle/ChillMainBundle/Tests/Routing/Loader/RouteLoaderTest.php
index ff8ee423e..9f0291007 100644
--- a/src/Bundle/ChillMainBundle/Tests/Routing/Loader/RouteLoaderTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Routing/Loader/RouteLoaderTest.php
@@ -23,7 +23,7 @@ final class RouteLoaderTest extends KernelTestCase
{
private $router;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
$this->router = self::$kernel->getContainer()->get('router');
diff --git a/src/Bundle/ChillMainBundle/Tests/Search/AbstractSearchTest.php b/src/Bundle/ChillMainBundle/Tests/Search/AbstractSearchTest.php
index c0c3b176a..e04b33e59 100644
--- a/src/Bundle/ChillMainBundle/Tests/Search/AbstractSearchTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Search/AbstractSearchTest.php
@@ -24,7 +24,7 @@ final class AbstractSearchTest extends \PHPUnit\Framework\TestCase
*/
private $stub;
- public function setUp()
+ protected function setUp(): void
{
$this->stub = $this->getMockForAbstractClass('Chill\MainBundle\Search\AbstractSearch');
}
diff --git a/src/Bundle/ChillMainBundle/Tests/Search/SearchProviderTest.php b/src/Bundle/ChillMainBundle/Tests/Search/SearchProviderTest.php
index 3bbc2b94b..07d7c7ab7 100644
--- a/src/Bundle/ChillMainBundle/Tests/Search/SearchProviderTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Search/SearchProviderTest.php
@@ -11,8 +11,11 @@ declare(strict_types=1);
namespace Chill\MainBundle\Test\Search;
+use Chill\MainBundle\Search\ParsingException;
use Chill\MainBundle\Search\SearchInterface;
use Chill\MainBundle\Search\SearchProvider;
+use Chill\MainBundle\Search\UnknowSearchDomainException;
+use Chill\MainBundle\Search\UnknowSearchNameException;
use PHPUnit\Framework\TestCase;
/**
@@ -26,7 +29,7 @@ final class SearchProviderTest extends TestCase
*/
private $search;
- public function setUp()
+ protected function setUp(): void
{
$this->search = new SearchProvider();
@@ -100,20 +103,18 @@ final class SearchProviderTest extends TestCase
], $terms);
}
- /**
- * @expectedException \Chill\MainBundle\Search\UnknowSearchNameException
- */
public function testInvalidSearchName()
{
+ $this->expectException(UnknowSearchNameException::class);
+
$this->search->getByName('invalid name');
}
- /**
- * @expectedException \Chill\MainBundle\Search\ParsingException
- */
public function testMultipleDomainError()
{
- $term = $this->p('@person @report');
+ $this->expectException(ParsingException::class);
+
+ $this->p('@person @report');
}
/**
@@ -146,14 +147,11 @@ final class SearchProviderTest extends TestCase
], $response);
}
- /**
- * @expectedException \Chill\MainBundle\Search\UnknowSearchDomainException
- */
public function testSearchResultDomainUnknow()
{
- $response = $this->search->getSearchResults('@unknow domain');
+ $this->expectException(UnknowSearchDomainException::class);
- //$this->markTestSkipped();
+ $this->search->getSearchResults('@unknow domain');
}
public function testSearchWithinSpecificSearchName()
@@ -169,12 +167,11 @@ final class SearchProviderTest extends TestCase
$this->assertEquals('I am domain foo', $response);
}
- /**
- * @expectedException \Chill\MainBundle\Search\ParsingException
- */
public function testSearchWithinSpecificSearchNameInConflictWithSupport()
{
- $response = $this->search->getResultByName('@foo default search', 'bar');
+ $this->expectException(ParsingException::class);
+
+ $this->search->getResultByName('@foo default search', 'bar');
}
public function testSimplePattern()
diff --git a/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php b/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php
index 4618ba3b1..f4984167f 100644
--- a/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php
@@ -38,7 +38,7 @@ final class AuthorizationHelperTest extends KernelTestCase
use PrepareUserTrait;
use ProphecyTrait;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
}
diff --git a/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php b/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php
index 4bb6c6743..cc10e43cb 100644
--- a/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php
@@ -16,6 +16,7 @@ use Chill\MainBundle\Security\PasswordRecover\TokenManager;
use DateInterval;
use DateTimeImmutable;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
+use UnexpectedValueException;
/**
* @internal
@@ -25,7 +26,7 @@ final class TokenManagerTest extends KernelTestCase
{
protected $tokenManager;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel();
@@ -55,11 +56,10 @@ final class TokenManagerTest extends KernelTestCase
$this->assertEquals($user->getUsernameCanonical(), $tokens['u']);
}
- /**
- * @expectedException \UnexpectedValueException
- */
public function testGenerateEmptyUsernameCanonical()
{
+ $this->expectException(UnexpectedValueException::class);
+
$tokenManager = $this->tokenManager;
// set a username, but not a username canonical
$user = (new User())->setUsername('test');
diff --git a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/CenterResolverDispatcherTest.php b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/CenterResolverDispatcherTest.php
index 80b01a170..ee7431554 100644
--- a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/CenterResolverDispatcherTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/CenterResolverDispatcherTest.php
@@ -24,7 +24,7 @@ final class CenterResolverDispatcherTest extends KernelTestCase
{
private CenterResolverDispatcherInterface $dispatcher;
- protected function setUp()
+ protected function setUp(): void
{
self::bootKernel();
$this->dispatcher = self::$container->get(CenterResolverDispatcher::class);
diff --git a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php
index 32c07b04e..bc0e6d8cb 100644
--- a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php
@@ -25,7 +25,7 @@ final class DefaultScopeResolverTest extends TestCase
{
private DefaultScopeResolver $scopeResolver;
- public function setUp()
+ protected function setUp(): void
{
$this->scopeResolver = new DefaultScopeResolver();
}
diff --git a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/ScopeResolverDispatcherTest.php b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/ScopeResolverDispatcherTest.php
index 320d2e326..5d15e7d91 100644
--- a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/ScopeResolverDispatcherTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/ScopeResolverDispatcherTest.php
@@ -26,7 +26,7 @@ final class ScopeResolverDispatcherTest extends TestCase
{
private ScopeResolverDispatcher $scopeResolverDispatcher;
- public function setUp()
+ protected function setUp(): void
{
$this->scopeResolverDispatcher = new ScopeResolverDispatcher([new DefaultScopeResolver()]);
}
diff --git a/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DateNormalizerTest.php b/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DateNormalizerTest.php
index fc9612299..c925954bf 100644
--- a/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DateNormalizerTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DateNormalizerTest.php
@@ -30,7 +30,7 @@ final class DateNormalizerTest extends KernelTestCase
{
private Prophet $prophet;
- public function setUp()
+ protected function setUp(): void
{
$this->prophet = new Prophet();
}
diff --git a/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DoctrineExistingEntityNormalizerTest.php b/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DoctrineExistingEntityNormalizerTest.php
index b45b2c21d..5f5431d7c 100644
--- a/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DoctrineExistingEntityNormalizerTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DoctrineExistingEntityNormalizerTest.php
@@ -25,7 +25,7 @@ final class DoctrineExistingEntityNormalizerTest extends KernelTestCase
{
protected DoctrineExistingEntityNormalizer $normalizer;
- protected function setUp()
+ protected function setUp(): void
{
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
diff --git a/src/Bundle/ChillMainBundle/Tests/Services/MenuComposerTest.php b/src/Bundle/ChillMainBundle/Tests/Services/MenuComposerTest.php
index bb98b074d..b7df8018e 100644
--- a/src/Bundle/ChillMainBundle/Tests/Services/MenuComposerTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Services/MenuComposerTest.php
@@ -32,7 +32,7 @@ final class MenuComposerTest extends KernelTestCase
*/
private $menuComposer;
- public function setUp()
+ protected function setUp(): void
{
self::bootKernel(['environment' => 'test']);
$this->menuComposer = self::$container
diff --git a/src/Bundle/ChillMainBundle/Tests/Templating/Entity/AddressRenderTest.php b/src/Bundle/ChillMainBundle/Tests/Templating/Entity/AddressRenderTest.php
index c866224e3..e577028ca 100644
--- a/src/Bundle/ChillMainBundle/Tests/Templating/Entity/AddressRenderTest.php
+++ b/src/Bundle/ChillMainBundle/Tests/Templating/Entity/AddressRenderTest.php
@@ -25,7 +25,7 @@ use Symfony\Component\Templating\EngineInterface;
*/
final class AddressRenderTest extends KernelTestCase
{
- protected function setUp()
+ protected function setUp(): void
{
self::bootKernel();
}
diff --git a/src/Bundle/ChillMainBundle/Timeline/TimelineBuilder.php b/src/Bundle/ChillMainBundle/Timeline/TimelineBuilder.php
index c36751960..a6cd9d6df 100644
--- a/src/Bundle/ChillMainBundle/Timeline/TimelineBuilder.php
+++ b/src/Bundle/ChillMainBundle/Timeline/TimelineBuilder.php
@@ -18,6 +18,7 @@ use Doctrine\ORM\Query;
use Doctrine\ORM\Query\ResultSetMapping;
use LogicException;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
+
use function array_key_exists;
use function is_string;
@@ -291,7 +292,7 @@ class TimelineBuilder implements ContainerAwareInterface
$data = $this->getTemplateData(
$result['type'],
$entitiesByType[$result['type']][$result['id']], //the entity
- $context,
+ $context,
$args
);
diff --git a/src/Bundle/ChillMainBundle/Util/CountriesInfo.php b/src/Bundle/ChillMainBundle/Util/CountriesInfo.php
index 05089a04f..e5b392856 100644
--- a/src/Bundle/ChillMainBundle/Util/CountriesInfo.php
+++ b/src/Bundle/ChillMainBundle/Util/CountriesInfo.php
@@ -12,6 +12,7 @@ declare(strict_types=1);
namespace Chill\MainBundle\Util;
use UnexpectedValueException;
+
use function array_key_exists;
/**
diff --git a/src/Bundle/ChillMainBundle/Util/DateRangeCovering.php b/src/Bundle/ChillMainBundle/Util/DateRangeCovering.php
index 07f8b14ff..253f72aef 100644
--- a/src/Bundle/ChillMainBundle/Util/DateRangeCovering.php
+++ b/src/Bundle/ChillMainBundle/Util/DateRangeCovering.php
@@ -15,6 +15,7 @@ use DateTimeImmutable;
use DateTimeInterface;
use DateTimeZone;
use LogicException;
+
use function array_diff;
use function array_flip;
use function array_intersect_key;
@@ -24,6 +25,7 @@ use function array_unique;
use function array_values;
use function count;
use function ksort;
+
use const PHP_INT_MAX;
/**
diff --git a/src/Bundle/ChillMainBundle/Validator/Constraints/Entity/UserCircleConsistencyValidator.php b/src/Bundle/ChillMainBundle/Validator/Constraints/Entity/UserCircleConsistencyValidator.php
index 5cc283d95..398c7b551 100644
--- a/src/Bundle/ChillMainBundle/Validator/Constraints/Entity/UserCircleConsistencyValidator.php
+++ b/src/Bundle/ChillMainBundle/Validator/Constraints/Entity/UserCircleConsistencyValidator.php
@@ -14,6 +14,7 @@ namespace Chill\MainBundle\Validator\Constraints\Entity;
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
+
use function call_user_func;
class UserCircleConsistencyValidator extends ConstraintValidator
diff --git a/src/Bundle/ChillMainBundle/chill.api.specs.yaml b/src/Bundle/ChillMainBundle/chill.api.specs.yaml
index fba3cfc19..db4430e48 100644
--- a/src/Bundle/ChillMainBundle/chill.api.specs.yaml
+++ b/src/Bundle/ChillMainBundle/chill.api.specs.yaml
@@ -546,6 +546,14 @@ paths:
responses:
200:
description: "ok"
+ /1.0/main/user-current-location.json:
+ get:
+ tags:
+ - user
+ summary: Return the current location of the currently authenticated user
+ responses:
+ 200:
+ description: "ok"
/1.0/main/user/{id}.json:
get:
tags:
diff --git a/src/Bundle/ChillMainBundle/migrations/Version20150821105642.php b/src/Bundle/ChillMainBundle/migrations/Version20150821105642.php
index 910a6b028..ac80f2a58 100644
--- a/src/Bundle/ChillMainBundle/migrations/Version20150821105642.php
+++ b/src/Bundle/ChillMainBundle/migrations/Version20150821105642.php
@@ -16,6 +16,7 @@ use Doctrine\Migrations\AbstractMigration;
use Doctrine\ORM\Query\ResultSetMapping;
use RuntimeException;
use Symfony\Component\DependencyInjection\ContainerInterface;
+
use function count;
/**
diff --git a/src/Bundle/ChillMainBundle/migrations/Version20211213112628.php b/src/Bundle/ChillMainBundle/migrations/Version20211213112628.php
new file mode 100644
index 000000000..012ab27d9
--- /dev/null
+++ b/src/Bundle/ChillMainBundle/migrations/Version20211213112628.php
@@ -0,0 +1,36 @@
+addSql('ALTER TABLE chill_main_civility DROP "ordering"');
+ }
+
+ public function getDescription(): string
+ {
+ return 'Add order to civility';
+ }
+
+ public function up(Schema $schema): void
+ {
+ $this->addSql('ALTER TABLE chill_main_civility ADD "ordering" FLOAT DEFAULT 0.0');
+ }
+}
diff --git a/src/Bundle/ChillMainBundle/migrations/Version20211216213649.php b/src/Bundle/ChillMainBundle/migrations/Version20211216213649.php
new file mode 100644
index 000000000..4e5e4d9d9
--- /dev/null
+++ b/src/Bundle/ChillMainBundle/migrations/Version20211216213649.php
@@ -0,0 +1,33 @@
+addSql('DROP INDEX address_refid');
+ }
+
+ public function getDescription(): string
+ {
+ return 'add an index on address reference refid';
+ }
+
+ public function up(Schema $schema): void
+ {
+ $this->addSql('CREATE INDEX address_refid ON chill_main_address_reference (refId) WHERE refid != \'\'');
+ }
+}
diff --git a/src/Bundle/ChillMainBundle/translations/messages.fr.yml b/src/Bundle/ChillMainBundle/translations/messages.fr.yml
index 78363d080..4ae23f1e3 100644
--- a/src/Bundle/ChillMainBundle/translations/messages.fr.yml
+++ b/src/Bundle/ChillMainBundle/translations/messages.fr.yml
@@ -56,6 +56,7 @@ centers: centres
Centers: Centres
comment: commentaire
Comment: Commentaire
+Pinned comment: Commentaire épinglé
Any comment: Aucun commentaire
# comment embeddable
diff --git a/src/Bundle/ChillPersonBundle/Actions/Remove/PersonMove.php b/src/Bundle/ChillPersonBundle/Actions/Remove/PersonMove.php
index 930b96e07..63c6313ac 100644
--- a/src/Bundle/ChillPersonBundle/Actions/Remove/PersonMove.php
+++ b/src/Bundle/ChillPersonBundle/Actions/Remove/PersonMove.php
@@ -17,6 +17,7 @@ use Chill\PersonBundle\Entity\Person;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Mapping\ClassMetadata;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
+
use function array_merge;
use function implode;
use function in_array;
diff --git a/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php b/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php
index d3de0bd3d..5143592b8 100644
--- a/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php
+++ b/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php
@@ -16,6 +16,7 @@ use Chill\PersonBundle\Entity\Person;
use Doctrine\ORM\QueryBuilder;
use Exception;
use Symfony\Component\HttpFoundation\Request;
+
use function array_merge;
/**
diff --git a/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php b/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php
index 3af14fb0b..4a2e86236 100644
--- a/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php
+++ b/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php
@@ -20,6 +20,7 @@ use Symfony\Component\Console\Exception\RuntimeException;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
+
use function ctype_digit;
final class ChillPersonMoveCommand extends Command
diff --git a/src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php b/src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php
index d3500acd6..fd328efc4 100644
--- a/src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php
+++ b/src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php
@@ -39,6 +39,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Form\FormFactory;
use Symfony\Component\Form\FormFactoryInterface;
+
use function array_key_exists;
use function count;
use function file_get_contents;
@@ -46,6 +47,7 @@ use function get_class;
use function in_array;
use function is_array;
use function json_decode;
+
use const JSON_PRETTY_PRINT;
use const LC_TIME;
@@ -417,13 +419,15 @@ final class ImportPeopleFromCSVCommand extends Command
$line = $this->line = 1;
try {
- while (false !== ($row = fgetcsv(
- $csv,
- $input->getOption('length'),
- $input->getOption('delimiter'),
- $input->getOption('enclosure'),
- $input->getOption('escape')
- ))) {
+ while (
+ false !== ($row = fgetcsv(
+ $csv,
+ $input->getOption('length'),
+ $input->getOption('delimiter'),
+ $input->getOption('enclosure'),
+ $input->getOption('escape')
+ ))
+ ) {
$this->logger->debug('Processing line ' . $this->line);
if (1 === $line) {
@@ -450,8 +454,10 @@ final class ImportPeopleFromCSVCommand extends Command
$this->eventDispatcher->dispatch('chill_person.person_import', $event);
- if ($this->input->getOption('force') === true
- && false === $event->skipPerson) {
+ if (
+ $this->input->getOption('force') === true
+ && false === $event->skipPerson
+ ) {
$this->em->persist($person);
}
@@ -602,8 +608,10 @@ final class ImportPeopleFromCSVCommand extends Command
->getResult();
if (count($postalCodes) >= 1) {
- if ($postalCodes[0]->getCode() === $postalCode
- && $postalCodes[0]->getName() === $locality) {
+ if (
+ $postalCodes[0]->getCode() === $postalCode
+ && $postalCodes[0]->getName() === $locality
+ ) {
return $postalCodes[0];
}
}
@@ -625,7 +633,7 @@ final class ImportPeopleFromCSVCommand extends Command
$question = new ChoiceQuestion(
sprintf(
'Which postal code match the '
- . 'name "%s" with postal code "%s" ? (default to "%s")',
+ . 'name "%s" with postal code "%s" ? (default to "%s")',
$locality,
$postalCode,
$names[0]
@@ -658,13 +666,15 @@ final class ImportPeopleFromCSVCommand extends Command
$csv = $this->openCSV();
// getting the first row
- if (false !== ($row = fgetcsv(
- $csv,
- $input->getOption('length'),
- $input->getOption('delimiter'),
- $input->getOption('enclosure'),
- $input->getOption('escape')
- ))) {
+ if (
+ false !== ($row = fgetcsv(
+ $csv,
+ $input->getOption('length'),
+ $input->getOption('delimiter'),
+ $input->getOption('enclosure'),
+ $input->getOption('escape')
+ ))
+ ) {
try {
$this->matchColumnToCustomField($row);
} finally {
@@ -863,7 +873,9 @@ final class ImportPeopleFromCSVCommand extends Command
if (!isset($this->cacheAnswersMapping[$cf->getSlug()][$value])) {
// try to find the answer (with array_keys and a search value
$values = array_keys(
- array_map(static function ($label) { return trim(strtolower($label)); }, $answers),
+ array_map(static function ($label) {
+ return trim(strtolower($label));
+ }, $answers),
trim(strtolower($value)),
true
);
diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php
index 9445dc302..3b051a59d 100644
--- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php
@@ -38,6 +38,7 @@ use Symfony\Component\Validator\ConstraintViolationList;
use Symfony\Component\Validator\ConstraintViolationListInterface;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Symfony\Component\Workflow\Registry;
+
use function array_values;
use function count;
diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseCommentController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseCommentController.php
new file mode 100644
index 000000000..65e83cdbc
--- /dev/null
+++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseCommentController.php
@@ -0,0 +1,103 @@
+setAccompanyingPeriod($accompanyingCourse);
+
+ $form = $this->createCommentForm($newComment, 'new');
+ $editForm = null;
+
+ if ($request->query->has('edit')) {
+ foreach ($accompanyingCourse->getComments() as $comment) {
+ if ($comment->getId() === $request->query->getInt('edit')) {
+ $editForm = $this->createCommentForm($comment, 'edit');
+ $commentEditId = $comment->getId();
+ }
+ }
+ $pinnedComment = $accompanyingCourse->getPinnedComment();
+
+ if ($pinnedComment->getId() === $request->query->getInt('edit')) {
+ $editForm = $this->createCommentForm($pinnedComment, 'edit');
+ $commentEditId = $pinnedComment->getId();
+ }
+ }
+
+ if (null === $editForm) {
+ throw new NotFoundHttpException('Unable to find an edit form.');
+ }
+
+ if ($request->getMethod() === Request::METHOD_POST) {
+ $currentForm = $editForm->handleRequest($request);
+
+ if (array_key_exists('edit', $request->request->all()[$editForm->getName()])) {
+ $isEditingNew = false;
+ } else {
+ $isEditingNew = true;
+ }
+
+ if ($currentForm->isSubmitted() && $currentForm->isValid()) {
+ $em = $this->getDoctrine()->getManager();
+
+ if ($isEditingNew) {
+ $em->persist($newComment);
+ }
+ $em->flush();
+ }
+
+ return $this->redirectToRoute('chill_person_accompanying_period_comment_list', [
+ 'accompanying_period_id' => $accompanyingCourse->getId(),
+ ]);
+ }
+
+ return $this->render('@ChillPerson/AccompanyingCourse/comment_list.html.twig', [
+ 'accompanyingCourse' => $accompanyingCourse,
+ 'form' => $form->createView(),
+ 'edit_form' => null !== $editForm ? $editForm->createView() : null,
+ 'commentEditId' => $commentEditId ?? null,
+ ]);
+ }
+
+ private function createCommentForm(AccompanyingPeriod\Comment $comment, string $step): FormInterface
+ {
+ $form = $this->createForm(AccompanyingCourseCommentType::class, $comment);
+
+ if ('edit' === $step) {
+ $form->add('edit', HiddenType::class, ['mapped' => false]);
+ }
+
+ return $form;
+ }
+}
diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php
index 7d0e841cf..5088b2381 100644
--- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php
@@ -30,6 +30,7 @@ use Symfony\Component\Validator\Validator\ValidatorInterface;
use Symfony\Component\Workflow\Registry;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
+
use function is_array;
/**
diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php
index 1da7424bf..7e7b9a0c2 100644
--- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php
@@ -67,7 +67,7 @@ class AccompanyingCourseWorkController extends AbstractController
'error',
$this->trans->trans(
'accompanying_work.You must add at least ' .
- 'one social issue on accompanying period'
+ 'one social issue on accompanying period'
)
);
diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php
index bfc85a5b3..bb0081c27 100644
--- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php
@@ -27,6 +27,7 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Validator\ConstraintViolationListInterface;
use Symfony\Component\Validator\Validator\ValidatorInterface;
+
use function array_filter;
use function count;
@@ -170,8 +171,10 @@ class AccompanyingPeriodController extends AbstractController
$errors = $this->_validatePerson($person);
$flashBag = $this->get('session')->getFlashBag();
- if ($form->isValid(['Default', 'closed'])
- && count($errors) === 0) {
+ if (
+ $form->isValid(['Default', 'closed'])
+ && count($errors) === 0
+ ) {
$em = $this->getDoctrine()->getManager();
$em->persist($accompanyingPeriod);
$em->flush();
@@ -405,8 +408,10 @@ class AccompanyingPeriodController extends AbstractController
$errors = $this->_validatePerson($person);
$flashBag = $this->get('session')->getFlashBag();
- if ($form->isValid(['Default', 'closed'])
- && count($errors) === 0) {
+ if (
+ $form->isValid(['Default', 'closed'])
+ && count($errors) === 0
+ ) {
$em->flush();
$flashBag->add(
diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationApiController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationApiController.php
index ddd3445a4..de9433558 100644
--- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationApiController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationApiController.php
@@ -22,6 +22,7 @@ use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
use Symfony\Component\Serializer\SerializerInterface;
+
use function count;
use function in_array;
diff --git a/src/Bundle/ChillPersonBundle/Controller/HouseholdApiController.php b/src/Bundle/ChillPersonBundle/Controller/HouseholdApiController.php
index 62f4fc68f..da8655f3d 100644
--- a/src/Bundle/ChillPersonBundle/Controller/HouseholdApiController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/HouseholdApiController.php
@@ -24,6 +24,7 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
+
use function array_filter;
use function array_values;
@@ -93,8 +94,10 @@ class HouseholdApiController extends ApiController
$addresses[$a->getId()] = $a;
}
- if (null !== $personLocation = $participation
- ->getAccompanyingPeriod()->getPersonLocation()) {
+ if (
+ null !== $personLocation = $participation
+ ->getAccompanyingPeriod()->getPersonLocation()
+ ) {
$a = $personLocation->getCurrentHouseholdAddress();
if (null !== $a) {
diff --git a/src/Bundle/ChillPersonBundle/Controller/HouseholdController.php b/src/Bundle/ChillPersonBundle/Controller/HouseholdController.php
index 6ce73d508..ba4b788d7 100644
--- a/src/Bundle/ChillPersonBundle/Controller/HouseholdController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/HouseholdController.php
@@ -25,6 +25,7 @@ use Symfony\Component\Security\Core\Security;
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
use Symfony\Component\Serializer\SerializerInterface;
use Symfony\Component\Translation\TranslatorInterface;
+
use function array_key_exists;
use function count;
diff --git a/src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php b/src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php
index 012d0fd68..78234d114 100644
--- a/src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php
@@ -27,6 +27,7 @@ use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Serializer\Exception;
use Symfony\Component\Translation\TranslatorInterface;
+
use function count;
class HouseholdMemberController extends ApiController
@@ -186,7 +187,7 @@ class HouseholdMemberController extends ApiController
$_format,
['groups' => ['read']]
);
- } catch (Exception\InvalidArgumentException | Exception\UnexpectedValueException $e) {
+ } catch (Exception\InvalidArgumentException|Exception\UnexpectedValueException $e) {
throw new BadRequestException("Deserialization error: {$e->getMessage()}", 45896, $e);
}
diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonAddressController.php b/src/Bundle/ChillPersonBundle/Controller/PersonAddressController.php
index d387ff737..2d4a60c15 100644
--- a/src/Bundle/ChillPersonBundle/Controller/PersonAddressController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/PersonAddressController.php
@@ -18,6 +18,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Validator\Validator\ValidatorInterface;
+
use function count;
/**
diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php
index 23f6ec95d..813ccee2a 100644
--- a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php
@@ -14,13 +14,14 @@ namespace Chill\PersonBundle\Controller;
use Chill\MainBundle\CRUD\Controller\ApiController;
use Chill\MainBundle\Entity\Address;
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
+use Chill\PersonBundle\Config\ConfigPersonAltNamesHelper;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Security\Authorization\PersonVoter;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
-use Symfony\Component\Security\Core\Role\Role;
+
use function array_filter;
use function array_values;
@@ -28,9 +29,36 @@ class PersonApiController extends ApiController
{
private AuthorizationHelper $authorizationHelper;
- public function __construct(AuthorizationHelper $authorizationHelper)
- {
+ private ConfigPersonAltNamesHelper $configPersonAltNameHelper;
+
+ public function __construct(
+ AuthorizationHelper $authorizationHelper,
+ ConfigPersonAltNamesHelper $configPersonAltNameHelper
+ ) {
$this->authorizationHelper = $authorizationHelper;
+ $this->configPersonAltNameHelper = $configPersonAltNameHelper;
+ }
+
+ /**
+ * @Route("/api/1.0/person/config/alt_names.{_format}",
+ * name="chill_person_config_alt_names",
+ * requirements={
+ * "_format": "json"
+ * }
+ * )
+ */
+ public function configAltNames(Request $request, string $_format): Response
+ {
+ $configAltNamesChoices = $this->configPersonAltNameHelper->getChoices();
+
+ return $this->json(
+ array_map(
+ static fn (array $data, string $key): array => ['key' => $key, 'labels' => $data],
+ $configAltNamesChoices,
+ array_keys($configAltNamesChoices)
+ ),
+ Response::HTTP_OK, [], ['groups' => ['read']]
+ );
}
public function personAddressApi($id, Request $request, string $_format): Response
@@ -70,12 +98,4 @@ class PersonApiController extends ApiController
return $this->json(array_values($addresses), Response::HTTP_OK, [], ['groups' => ['read']]);
}
- protected function createEntity(string $action, Request $request): object
- {
- return parent::createEntity($action, $request);
- // TODO temporary hack to allow creation of person with fake center
- /* $centers = $this->authorizationHelper->getReachableCenters($this->getUser(),
- new Role(PersonVoter::CREATE));
- $person->setCenter($centers[0]); */
- }
}
diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonController.php b/src/Bundle/ChillPersonBundle/Controller/PersonController.php
index 1b79ba867..02c77ebd3 100644
--- a/src/Bundle/ChillPersonBundle/Controller/PersonController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/PersonController.php
@@ -32,6 +32,7 @@ use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\Security;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Component\Validator\Validator\ValidatorInterface;
+
use function count;
use function hash;
use function implode;
@@ -131,6 +132,8 @@ final class PersonController extends AbstractController
->getFlashBag()->add('error', $this->translator
->trans('This form contains errors'));
} elseif ($form->isSubmitted() && $form->isValid()) {
+ $this->em->flush();
+
$this->get('session')->getFlashBag()
->add(
'success',
@@ -138,8 +141,6 @@ final class PersonController extends AbstractController
->trans('The person data has been updated')
);
- $this->em->flush();
-
return $this->redirectToRoute('chill_person_view', [
'person_id' => $person->getId(),
]);
@@ -207,8 +208,10 @@ final class PersonController extends AbstractController
{
$person = new Person();
- if (1 === count($this->security->getUser()
- ->getGroupCenters())) {
+ if (
+ 1 === count($this->security->getUser()
+ ->getGroupCenters())
+ ) {
$person->setCenter(
$this->security->getUser()
->getGroupCenters()[0]
@@ -216,20 +219,21 @@ final class PersonController extends AbstractController
);
}
- $form = $this->createForm(CreationPersonType::class, $person, [
- 'validation_groups' => ['create'],
- ])->add('editPerson', SubmitType::class, [
- 'label' => 'Add the person',
- ])->add('createPeriod', SubmitType::class, [
- 'label' => 'Add the person and create an accompanying period',
- ]);
+ $form = $this->createForm(CreationPersonType::class, $person)
+ ->add('editPerson', SubmitType::class, [
+ 'label' => 'Add the person',
+ ])->add('createPeriod', SubmitType::class, [
+ 'label' => 'Add the person and create an accompanying period',
+ ]);
$form->handleRequest($request);
if ($request->getMethod() === Request::METHOD_GET) {
$this->lastPostDataReset();
- } elseif ($request->getMethod() === Request::METHOD_POST
- && $form->isValid()) {
+ } elseif (
+ $request->getMethod() === Request::METHOD_POST
+ && $form->isValid()
+ ) {
$alternatePersons = $this->similarPersonMatcher
->matchPerson($person);
diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php b/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php
index 0b3f36b1c..182a90d5a 100644
--- a/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php
@@ -29,6 +29,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Translation\TranslatorInterface;
+
use function count;
class PersonDuplicateController extends Controller
diff --git a/src/Bundle/ChillPersonBundle/Controller/SocialWorkSocialActionApiController.php b/src/Bundle/ChillPersonBundle/Controller/SocialWorkSocialActionApiController.php
index 24c1c6645..a6042b0a6 100644
--- a/src/Bundle/ChillPersonBundle/Controller/SocialWorkSocialActionApiController.php
+++ b/src/Bundle/ChillPersonBundle/Controller/SocialWorkSocialActionApiController.php
@@ -17,6 +17,7 @@ use Chill\MainBundle\Serializer\Model\Collection;
use Chill\PersonBundle\Repository\SocialWork\SocialIssueRepository;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
+
use function count;
class SocialWorkSocialActionApiController extends ApiController
diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/Helper/PersonRandomHelper.php b/src/Bundle/ChillPersonBundle/DataFixtures/Helper/PersonRandomHelper.php
index 4f5a51fd4..5b4eeb723 100644
--- a/src/Bundle/ChillPersonBundle/DataFixtures/Helper/PersonRandomHelper.php
+++ b/src/Bundle/ChillPersonBundle/DataFixtures/Helper/PersonRandomHelper.php
@@ -13,6 +13,7 @@ namespace Chill\PersonBundle\DataFixtures\Helper;
use Chill\PersonBundle\Entity\Person;
use Doctrine\ORM\EntityManagerInterface;
+
use function array_pop;
use function random_int;
diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/Helper/RandomPersonHelperTrait.php b/src/Bundle/ChillPersonBundle/DataFixtures/Helper/RandomPersonHelperTrait.php
index 516914f5f..00281311e 100644
--- a/src/Bundle/ChillPersonBundle/DataFixtures/Helper/RandomPersonHelperTrait.php
+++ b/src/Bundle/ChillPersonBundle/DataFixtures/Helper/RandomPersonHelperTrait.php
@@ -13,6 +13,7 @@ namespace Chill\PersonBundle\DataFixtures\Helper;
use Chill\PersonBundle\Entity\Person;
use Doctrine\ORM\EntityManagerInterface;
+
use function random_int;
trait RandomPersonHelperTrait
diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodOrigin.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodOrigin.php
index d4bfe9a2d..2d368d2f4 100644
--- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodOrigin.php
+++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodOrigin.php
@@ -14,7 +14,6 @@ namespace Chill\PersonBundle\DataFixtures\ORM;
use Chill\PersonBundle\Entity\AccompanyingPeriod\Origin;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
-
use Doctrine\Persistence\ObjectManager;
/**
diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php
index 64c7d2701..83698735e 100644
--- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php
+++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php
@@ -19,6 +19,7 @@ use Chill\PersonBundle\Repository\AccompanyingPeriodRepository;
use Chill\PersonBundle\Repository\SocialWork\EvaluationRepository;
use DateTimeImmutable;
use Doctrine\Persistence\ObjectManager;
+
use function array_pop;
use function array_rand;
use function count;
@@ -95,7 +96,7 @@ class LoadAccompanyingPeriodWork extends \Doctrine\Bundle\FixturesBundle\Fixture
// 1 of 10, force an evaluation
if (0 === $i % 10) {
$evaluation = $this->getRandomEvaluation();
- $action = $evaluation->getSocialAction();
+ $action = $evaluation->getSocialActions()->first();
$issue = $action->getIssue();
$period->addSocialIssue($issue);
diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadCustomFields.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadCustomFields.php
index 9541aa76b..1e6435c8b 100644
--- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadCustomFields.php
+++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadCustomFields.php
@@ -28,7 +28,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
class LoadCustomFields extends AbstractFixture implements
- ContainerAwareInterface,
+ ContainerAwareInterface,
OrderedFixtureInterface
{
/**
@@ -115,7 +115,9 @@ class LoadCustomFields extends AbstractFixture implements
// get possible values for cfGroup
$choices = array_map(
- static function ($a) { return $a['slug']; },
+ static function ($a) {
+ return $a['slug'];
+ },
$this->customFieldChoice->getOptions()['choices']
);
// create faker
diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php
index 6f9edd768..02b5ef2e7 100644
--- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php
+++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php
@@ -25,6 +25,7 @@ use Doctrine\Common\DataFixtures\DependentFixtureInterface;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Persistence\ObjectManager;
use Nelmio\Alice\Loader\NativeLoader;
+
use function array_pop;
use function array_rand;
use function random_int;
diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdPosition.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdPosition.php
index 42d2b7dd8..1642a71b9 100644
--- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdPosition.php
+++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdPosition.php
@@ -31,8 +31,10 @@ class LoadHouseholdPosition extends Fixture
public function load(ObjectManager $manager)
{
- foreach (self::POSITIONS_DATA as [$name, $share, $allowHolder,
- $ordering, $ref, ]) {
+ foreach (
+ self::POSITIONS_DATA as [$name, $share, $allowHolder,
+ $ordering, $ref, ]
+ ) {
$position = (new Position())
->setLabel(['fr' => $name])
->setAllowHolder($allowHolder)
diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php
index 924155955..b3bdd908f 100644
--- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php
+++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php
@@ -42,6 +42,7 @@ use Nelmio\Alice\Loader\NativeLoader;
use Nelmio\Alice\ObjectSet;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\Workflow\Registry;
+
use function count;
use function random_int;
use function ucfirst;
diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadRelationships.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadRelationships.php
index 80f3e711d..4fa9802f8 100644
--- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadRelationships.php
+++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadRelationships.php
@@ -20,6 +20,7 @@ use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Persistence\ObjectManager;
+
use function count;
class LoadRelationships extends Fixture implements DependentFixtureInterface
diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/data/social_work_metadata.csv b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/data/social_work_metadata.csv
index 6257b904b..9d6d40081 100644
--- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/data/social_work_metadata.csv
+++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/data/social_work_metadata.csv
@@ -1,32 +1,38 @@
AD - PREVENTION, ACCES AUX DROITS, BUDGET;ACCES AUX DROITS;Informer, conseiller;;;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;ACCES AUX DROITS;Aider à l'inclusion numérique;;;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;ACCES AUX DROITS;Demander une aide juridictionnelle;;;;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;ACCES AUX DROITS;Aider à l'ouverture aux droits;;;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;ACCES AUX DROITS;Demander une aide alimentaire;;;;Demande aide alimentaire
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;ACCES AUX DROITS;Demander une aide de 1ère nécessité (aide alimentaire, vêtement, …);;;;Demande aide 1ère nécessité
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;ACCES AUX DROITS;Demander une aide juridictionnelle;;;;https://www.service-public.fr/particuliers/vosdroits/R1444
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;ACCES AUX DROITS;Aider à l'inclusion numérique;;;;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Informer, conseiller;;;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : Centre Communal d’Action Sociale;;Demande aide impayé CCAS
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : CAF/MSA - Secours d’urgence;;Demande aide impayé CAF
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : CAF/MSA - Aide financière;;Demande aide impayé CAF
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : Caisse Primaire d’Assurance Maladie;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Impayés de loyer;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Énergie / Fluides;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Impayés télécommunication;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Impayés aire d'accueil GDV ;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Lié à la COVID;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : Secours exceptionnels;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Instruire le dossier de surendettement;;;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une mesure de protection adulte;;Objectif : Sauvegarde de justice;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une mesure de protection adulte;;Objectif : Mesure d'Accompagnement Judiciaire (MAJ);;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une mesure de protection adulte;;Objectif : Signalement personne vulnérable;;Formulaire signalement personne vulnérable
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une mesure de protection adulte;;Objectif : Mesure de protection personne majeure (tutelle, curatelle);;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Faire une demande auprès des associations caritatives;;;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Instruire des formulaires auprès d'autres organismes (Locapass, Fastt, …);;;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Instruire une première demande d'AEB;;;;Demande AEB
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander un renouvellement d'AEB;;Objectif : Dans l'attente d'une mesure de protection ;;Renouvellement AEB
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander un renouvellement d'AEB;;Objectif : Pour poursuivre les objectifs engagés;;Renouvellement AEB
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Instruire une première demande de MASP;;;;Demande MAPS
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander un renouvellement MASP;;Objectif : Dans l'attente d'une mesure de protection ;;Renouvellement MASP
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander un renouvellement MASP;;Objectif : Pour poursuivre les objectifs engagés;;Renouvellement MASP
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : Centre Communal d’Action Sociale;ACCORD;Imprimé unique
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : Centre Communal d’Action Sociale;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : CAF/MSA - Secours d’urgence;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : CAF/MSA - Secours d’urgence;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : CAF/MSA - Aide financière;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : CAF/MSA - Aide financière;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : Caisse Primaire d’Assurance Maladie ;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : Caisse Primaire d’Assurance Maladie ;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Impayés de loyer;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Impayés de loyer;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Énergie / Fluides;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Énergie / Fluides;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Impayés télécommunication;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Impayés télécommunication;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Impayés aire d'accueil GDV ;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : FSL Maintien - Impayés aire d'accueil GDV ;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : Secours exceptionnels Cabinet;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander une aide pour des impayés;;Objectif : Secours exceptionnels Cabinet;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Instruire le dossier de surendettement;;;Moratoire ;https://particuliers.banque-france.fr/sites/default/files/media/2020/05/12/1947_0.pdf
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Instruire le dossier de surendettement;;;Plan d'apurement ;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Instruire le dossier de surendettement;;;PRP ;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Instruire le dossier de surendettement;;;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Faire une demande auprès des associations caritatives;;;;Demande auprès d'une association
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Instruire une première demande d'AEB;;;;Formulaire AEB
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander un renouvellement d'AEB;;Objectif : Dans l'attente d'une mesure de protection ;ACCORD;Formulaire AEB
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander un renouvellement d'AEB;;Objectif : Pour poursuivre les objectifs engagés;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Instruire une première demande de MASP;;;;Evaluation demande de MASP
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander un renouvellement MASP;;Objectif : Dans l'attente d'une mesure de protection ;ACCORD;Evaluation demande de MASP
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Demander un renouvellement MASP;;Objectif : Pour poursuivre les objectifs engagés;REFUS;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Cibler des objectifs avec l'usager;Objectif : Soutenir dans les démarches administratives;;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Cibler des objectifs avec l'usager;Objectif : Aider au tri, au classement et à l’archivage des documents administratifs;;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Cibler des objectifs avec l'usager;Objectif : Soutenir les ménages dans l’apurement des dettes, accompagner les ménages endettées, surendettées;;
@@ -39,33 +45,60 @@ AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AE
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Cibler des objectifs avec l'usager;Objectif : Instruire des formulaires d'autres organismes non référencés…;;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Cibler des objectifs avec l'usager;Objectif : Instruire le dossier de surendettement ;;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Cibler des objectifs avec l'usager;Objectif : Demander ou renouveler la couverture santé (ACS);;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide alimentaire;;;Demande aide alimentaire
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Centre Communal d’Action Sociale;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Secours d’urgence;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Aide financière;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Caisse Primaire d’Assurance Maladie ;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Cautionnement;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Dépôt de garantie;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - 1er loyer;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Frais d’agence;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Assurances;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Déménagement;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Aide à l’installation;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Facture résiliation énergie (nv logement);;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés de loyer;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Énergie / Fluides;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés télécommunication;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés aire d'accueil GDV ;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Lié à la COVID;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Secours exceptionnels;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Mesure ASLL;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Faire une demande auprès de Association caritative;;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Sauvegarde de justice;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Signalement personne vulnérable;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Mesure de protection personne majeure (tutelle, curatelle);;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Mesure d'Accompagnement Judiciaire (MAJ);;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Mesure Judiciaire d'Aide à la Gestion du Budget Familial (MJAGBF);;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Conclure l'AEB;;Résultat : Arrêt à l'initiative du ménage pour déménagement;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide de 1ère nécessité (aide alimentaire, vêtement, …);;ACCORD;Demande aide 1ère nécessité
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide de 1ère nécessité (aide alimentaire, vêtement, …);;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Centre Communal d’Action Sociale;ACCORD;Imprimé unique
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Centre Communal d’Action Sociale;REFUS;FSL Justificatif accès logement
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Secours d’urgence;ACCORD;FSL Justificatif impayés loyers
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Secours d’urgence;REFUS;"Demande d'accompagnement lié au logement (ASLL)
+"
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Aide financière;ACCORD;Cautionnement
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Aide financière;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Caisse Primaire d’Assurance Maladie ;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Caisse Primaire d’Assurance Maladie ;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Cautionnement;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Cautionnement;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Dépôt de garantie;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Dépôt de garantie;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - 1er loyer;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - 1er loyer;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Frais d’agence;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Frais d’agence;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Assurances;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Assurances;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Déménagement;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Déménagement;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Aide à l’installation;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Aide à l’installation;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Facture résiliation énergie (nv logement);ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Facture résiliation énergie (nv logement);REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés de loyer;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés de loyer;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Énergie / Fluides;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Énergie / Fluides;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés télécommunication;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés télécommunication;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés aire d'accueil GDV ;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés aire d'accueil GDV ;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Lié à la COVID;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Lié à la COVID;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Secours exceptionnels;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Secours exceptionnels;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Mesure ASLL;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une aide pour des impayés ou accès logement;Objectif : Mesure ASLL;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Faire une demande auprès d'une association caritative;;ACCORD;Demande auprès d'une association
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Faire une demande auprès d'une association caritative;;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Sauvegarde de justice;ACCORD;Rapport d'évaluation signalement personne vulnérable
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Sauvegarde de justice;REFUS;URL sur Grille d'aide à l'évaluation d'une situation de vulnérabilité
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Signalement personne vulnérable;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Signalement personne vulnérable;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Mesure de protection personne majeure (tutelle, curatelle);ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Mesure de protection personne majeure (tutelle, curatelle);REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Mesure d'Accompagnement Judiciaire (MAJ);ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Mesure d'Accompagnement Judiciaire (MAJ);REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Mesure Judiciaire d'Aide à la Gestion du Budget Familial (MJAGBF);ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Demander une mesure de protection ;Objectif : Mesure Judiciaire d'Aide à la Gestion du Budget Familial (MJAGBF);REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Conclure l'AEB;;Résultat : Arrêt à l'initiative du ménage pour déménagement;Formulaire AEB
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Conclure l'AEB;;Résultat : Suspension momentanée de l'accompagnement par le ménage ou le professionnel;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Conclure l'AEB;;Résultat : Arrêt pour absence d'adhésion;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer un AEB;Conclure l'AEB;;Résultat : Arrêt à l'initiative du ménage pour séparation;
@@ -88,31 +121,57 @@ AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une M
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Cibler des objectifs avec l'usager;Objectif : Instruire des formulaires d'autres organismes non référencés…;;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Cibler des objectifs avec l'usager;Objectif : Instruire le dossier de surendettement ;;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Cibler des objectifs avec l'usager;Objectif : Demander ou renouveler la couverture santé (ACS);;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide alimentaire;;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Centre Communal d’Action Sociale;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Secours d’urgence;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Aide financière;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Caisse Primaire d’Assurance Maladie ;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Cautionnement;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Dépôt de garantie;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - 1er loyer;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Frais d’agence;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Assurances;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Déménagement;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Aide à l’installation;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Facture résiliation énergie (nv logement);;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés de loyer;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Énergie / Fluides;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés télécommunication;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés aire d'accueil GDV ;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Lié à la COVID;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Secours exceptionnels;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Mesure ASLL;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Sauvegarde de justice;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Signalement personne vulnérable;;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Mesure de protection personne majeure (tutelle, curatelle);;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Mesure d'Accompagnement Judiciaire (MAJ);;
-AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Mesure Judiciaire d'Aide à la Gestion du Budget Familial (MJAGBF);;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide de 1ère nécessité (aide alimentaire, vêtement, …);;ACCORD;Demande aide 1ère nécessité
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide de 1ère nécessité (aide alimentaire, vêtement, …);;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Centre Communal d’Action Sociale;ACCORD;Imprimé unique
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Centre Communal d’Action Sociale;REFUS;FSL Justificatif accès logement
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Secours d’urgence;ACCORD;FSL Justificatif impayés loyers
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Secours d’urgence;REFUS;"Demande d'accompagnement lié au logement (ASLL)
+"
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Aide financière;ACCORD;Cautionnement
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : CAF/MSA - Aide financière;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Caisse Primaire d’Assurance Maladie ;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Caisse Primaire d’Assurance Maladie ;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Cautionnement;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Cautionnement;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Dépôt de garantie;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Dépôt de garantie;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - 1er loyer;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - 1er loyer;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Frais d’agence;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Frais d’agence;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Assurances;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Assurances;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Déménagement;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Déménagement;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Aide à l’installation;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Aide à l’installation;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Facture résiliation énergie (nv logement);ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Accès - Facture résiliation énergie (nv logement);REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés de loyer;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés de loyer;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Énergie / Fluides;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Énergie / Fluides;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés télécommunication;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés télécommunication;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés aire d'accueil GDV ;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Impayés aire d'accueil GDV ;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Lié à la COVID;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : FSL Maintien - Lié à la COVID;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Secours exceptionnels;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Secours exceptionnels;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Mesure ASLL;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une aide pour des impayés ou accès logement;Objectif : Mesure ASLL;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Sauvegarde de justice;ACCORD;Rapport d'évaluation signalement personne vulnérable
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Sauvegarde de justice;REFUS;Grille d'aide à l'évaluation d'une situation de vulnérabilité
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Signalement personne vulnérable;ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Signalement personne vulnérable;REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Mesure de protection personne majeure (tutelle, curatelle);ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Mesure de protection personne majeure (tutelle, curatelle);REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Mesure d'Accompagnement Judiciaire (MAJ);ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Mesure d'Accompagnement Judiciaire (MAJ);REFUS;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Mesure Judiciaire d'Aide à la Gestion du Budget Familial (MJAGBF);ACCORD;
+AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Demander une mesure de protection adulte;Objectif : Mesure Judiciaire d'Aide à la Gestion du Budget Familial (MJAGBF);REFUS;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Conclure la MASP;;Résultat : Arrêt à l'initiative du ménage pour déménagement;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Conclure la MASP;;Résultat : Suspension momentanée de l'accompagnement par le ménage ou le professionnel;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Conclure la MASP;;Résultat : Arrêt pour absence d'adhésion;
@@ -123,64 +182,117 @@ AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une M
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Conclure la MASP;;Résultat : Transmission pour une mesure d'accompagnement judiciaire ;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Conclure la MASP;;Résultat : Renouvellement de MASP dans l'attente d'une mesure de protection ;
AD - PREVENTION, ACCES AUX DROITS, BUDGET;SOUTIEN EQUILIBRE BUDGET;Exercer une MASP;Conclure la MASP;;Résultat : Renouvellement de MASP pour poursuivre les objectifs engagés;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Informer, conseiller;;;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Demander une aide pour l'accès;;Objectif : FSL Accès - Cautionnement;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Demander une aide pour l'accès;;Objectif : FSL Accès - Dépôt de garantie;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Demander une aide pour l'accès;;Objectif : FSL Accès - 1er loyer;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Demander une aide pour l'accès;;Objectif : FSL Accès - Frais d’agence;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Demander une aide pour l'accès;;Objectif : FSL Accès - Assurances;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Demander une aide pour l'accès;;Objectif : FSL Accès - Déménagement;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Demander une aide pour l'accès;;Objectif : FSL Accès - Aide à l’installation;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Demander une aide pour l'accès;;Objectif : FSL Accès - Facture résiliation énergie (nv logement);;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Demander une aide pour l'accès;;Objectif : FSL Accès - Mesure ASLL;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Demander auprès des Bailleurs sociaux, mairies, partenaires;;;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Instruire une demande DALO, DAHO;;;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Instruire une demande SIAO;;;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Instruire une demande ASLL;;;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Instruire une demande au Contingent préfectoral;;;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Instruire une demande au 115;;;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Intervenir au commandement de payer;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Instruire la fiche Assignation;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Répondre au commandement de quitter les lieux;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Répondre au concours de la force publique;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Demander une aide financière FSL pour impayé de loyer;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Déposer un dossier de surendettement;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Demander auprès des Bailleurs sociaux, mairies, partenaires;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Instruire une demande DALO, DAHO;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Instruire une demande SIAO;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Instruire une demande ASLL;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Instruire une demande au Contingent préfectoral;;
-AD - LOGEMENT;ACCES LOGEMENT (RE);Prévenir de l'expulsion;;Objectif : Instruire une demande au 115;;
+AD - PROTECTION;;Demander une mesure de protection adulte;;Objectif : Sauvegarde de justice;ACCORD;Rapport d'évaluation signalement personne vulnérable
+AD - PROTECTION;;Demander une mesure de protection adulte;;Objectif : Sauvegarde de justice;REFUS;Grille d'aide à l'évaluation d'une situation de vulnérabilité
+AD - PROTECTION;;Demander une mesure de protection adulte;;Objectif : Mesure d'Accompagnement Judiciaire (MAJ);ACCORD;
+AD - PROTECTION;;Demander une mesure de protection adulte;;Objectif : Mesure d'Accompagnement Judiciaire (MAJ);REFUS;
+AD - PROTECTION;;Demander une mesure de protection adulte;;Objectif : Signalement personne vulnérable;ACCORD;
+AD - PROTECTION;;Demander une mesure de protection adulte;;Objectif : Signalement personne vulnérable;REFUS;
+AD - PROTECTION;;Demander une mesure de protection adulte;;Objectif : Mesure de protection personne majeure (tutelle, curatelle);ACCORD;
+AD - PROTECTION;;Demander une mesure de protection adulte;;Objectif : Mesure de protection personne majeure (tutelle, curatelle);REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Informer, conseiller;;;;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Cautionnement;ACCORD;Imprimé unique
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Cautionnement;REFUS;FSL Justificatif accès logement
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Dépôt de garantie;ACCORD;FSL Justificatif impayés loyers
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Dépôt de garantie;REFUS;Cautionnement
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - 1er loyer;ACCORD;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - 1er loyer;REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Frais d’agence;ACCORD;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Frais d’agence;REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Assurances;ACCORD;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Assurances;REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Déménagement;ACCORD;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Déménagement;REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Aide à l’installation;ACCORD;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Aide à l’installation;REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Facture résiliation énergie (nv logement);ACCORD;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Facture résiliation énergie (nv logement);REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Mesure ASLL;ACCORD;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - Mesure ASLL;REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - CAF pré-équipement;ACCORD;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander une aide pour l'accès;;Objectif : FSL Accès - CAF pré-équipement;REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Demander auprès des Bailleurs sociaux, mairies, partenaires;;;;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Instruire une demande DALO, DAHO;;;;http://www.dalo13.fr/formulaires-de-demande
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Instruire une demande SIAO;;;;URL Demande SIAO
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Instruire une demande ASLL;;;ACCORD;"Demande d'accompagnement lié au logement (ASLL)
+"
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Instruire une demande ASLL;;;REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Instruire une demande au Contingent préfectoral;;;;Fiche de signalement contingent préfectoral
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Instruire une demande au 115;;;;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Intervenir au commandement de payer;;http://www.dalo13.fr/formulaires-de-demande
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Instruire la fiche Assignation;;URL Demande SIAO
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Répondre au commandement de quitter les lieux;;Fiche de signalement contingent préfectoral
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Répondre au concours de la force publique;;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Demander une aide financière FSL pour impayé de loyer;;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Déposer un dossier de surendettement;;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Instruire une demande auprès des Bailleurs sociaux, mairies, partenaires;;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Instruire une demande DALO, DAHO;ACCORD;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Instruire une demande DALO, DAHO;REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Instruire une demande SIAO;;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Instruire une demande ASLL;ACCORD;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Instruire une demande ASLL;REFUS;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Instruire une demande au Contingent préfectoral;;
+AD - LOGEMENT;ACCES (RE)LOGEMENT;Prévenir de l'expulsion;;Objectif : Instruire une demande au 115;;
AD - LOGEMENT;HABITAT INDIGNE;Informer, conseiller;;;;
-AD - LOGEMENT;HABITAT INDIGNE;Demander une aide pour incurie;;Objectif : FSL maintien - aide incurie;;
-AD - LOGEMENT;HABITAT INDIGNE;Instruire la grille de signalement;;;;
+AD - LOGEMENT;HABITAT INDIGNE;Demander une aide pour incurie;;Objectif : FSL maintien - aide incurie;ACCORD;Imprimé unique
+AD - LOGEMENT;HABITAT INDIGNE;Demander une aide pour incurie;;Objectif : FSL maintien - aide incurie;REFUS;
+AD - LOGEMENT;HABITAT INDIGNE;Instruire la grille de signalement;;;;Grille signalement incurie habitat indigne
AD - LOGEMENT;HABITAT INDIGNE;Faire intervenir d'autres partenaires;;;;
AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Informer, conseiller;;;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Demander un accompagnement psychologue insertion;;;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement psychologue insertion;;;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Renouveller l'accompagnement psychologue insertion;;;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Demander un accompagnement psychologue insertion;;;ACCORD;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Demander un accompagnement psychologue insertion;;;REFUS;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement psychologue insertion;;;;Fiche d’orientation, prescription psychologique
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement psychologue insertion;;;;Accompagnement psychologique Fiche suivi
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Renouveller l'accompagnement psychologue insertion;;;ACCORD;Accompagnement psychologique Demande de renouvellement
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Renouveller l'accompagnement psychologue insertion;;;REFUS;
AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Réorienter l'usager vers autres structures pour un accompagnement psychologique;;;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Demander l'accompagnement global;;Objectif : Axe 2;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global;;Objectif : Axe 2;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Renouveller l'accompagnement global;;Objectif : Axe 2;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Demander l'accompagnement global;;Objectif : Axe 3 (agent d'insertion);;
-AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global;;Objectif : Axe 3 (agent d'insertion);;
-AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Renouveller l'accompagnement global;;Objectif : Axe 3 (agent d'insertion);;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Demander l'accompagnement global;;Objectif : Axe 2;ACCORD;Fiche prescription Axe 2 et 3
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Demander l'accompagnement global;;Objectif : Axe 2;REFUS;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Demander l'accompagnement global;;Objectif : Axe 3 (agent d'insertion);ACCORD;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Demander l'accompagnement global;;Objectif : Axe 3 (agent d'insertion);REFUS;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Accès aux droits;Résultat : Réalisé;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Difficultés financières;Résultat : Arrêt avant terme;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Santé;Résultat : Non entré, absence au RDV ;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Logement;Résultat : Non entré, hors cadre;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Mobilité;Résultat : Relai vers un autre professionnel ;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Peu d'expérience professionnelle, reconversion, mise en mouvement;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Numérique;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Difficultés, contraintes familiales;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Burn out, épuisement professionnel;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Difficultés à suivre l'administratif;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Isolement social;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 2;;Motif : Difficultés avec la langue française;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Accès aux droits;Résultat : Réalisé;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Difficultés financières;Résultat : Arrêt avant terme;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Santé;Résultat : Non entré, absence au RDV ;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Logement;Résultat : Non entré, hors cadre;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Mobilité;Résultat : Relai vers un autre professionnel ;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Peu d'expérience professionnelle, reconversion, mise en mouvement;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Numérique;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Difficultés, contraintes familiales;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Burn out, épuisement professionnel;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Difficultés à suivre l'administratif;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Isolement social;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Exercer l'accompagnement global AXE 3;;Motif : Difficultés avec la langue française;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Renouveller l'accompagnement global;;Objectif : Axe 2(agent d'insertion);ACCORD;Fiche prescription Axe 2 et 3
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Renouveller l'accompagnement global;;Objectif : Axe 2(agent d'insertion);REFUS;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Renouveller l'accompagnement global;;Objectif : Axe 3 (agent d'insertion);ACCORD;
+AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Renouveller l'accompagnement global;;Objectif : Axe 3 (agent d'insertion);REFUS;
AD - INSERTION SOCIALE PROFESSIONNELLE;ACCOMPAGNEMENT INSERTION;Instruire une demande MOVEA;;;;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Informer, conseiller;;;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;"Aider à l'ouverture de droits
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;"Aider à l'ouverture de droits
";;;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renseigner la plateforme INCLUSION@COM pour les chantiers d'insertion;;;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Soutenir le parcours professionnel (emploi, formation, …);;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement global Axe 2 (orientation Pôle Emploi);;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Orienter vers une structure de l'insertion (chantier, AI, ETTI, …);;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Demander la médiation emploi;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Création d'entreprise;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement travailleur non salarié;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement ASR CEIDRE;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier MDPH;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier retraite;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Soutenir l'accès au logement;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renseigner la plateforme INCLUSION@COM pour les chantiers d'insertion;;;;Avenant au contrat
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Soutenir le parcours professionnel (emploi, formation, …);;Contrat d'Engagement Réciproque
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement global Axe 2 (avec orientation Pôle Emploi);;Fiche prescription axe 2 et 3
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Orienter vers une structure de l'insertion (chantier, AI, ETTI, …);;Fiche de demande Action PVI
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Demander la médiation emploi;;Fiche prescription PDIE FAII PST
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Création d'entreprise;;Fiche orientation prescription médiation emploi
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement travailleur non salarié;;Demande Diagnostic T.I. BRSA
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement ASR CEIDRE;;Fiche d’orientation, prescription psychologique
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier MDPH;;https://www.service-public.fr/particuliers/vosdroits/R19993
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier retraite;;https://mdphenligne.cnsa.fr/v2/mdph/85/inscription
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Soutenir l'accès au logement;;https://aleop.paysdelaloire.fr/carte-mobi
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Accompagner le budget;;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Soutenir la mobilité (MOVEA, transport solidaire, PST, …);;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Demander le psychologue insertion;;
@@ -188,17 +300,17 @@ AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Ré
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Initier ou maintenir un parcours santé (cure, hospitalisation, CMP, …);;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Solliciliter un FAII;;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Demander un réorientation Pôle Emploi;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Autre;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Soutenir le parcours professionnel (emploi, formation, …);;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement global Axe 2 (orientation Pôle Emploi);;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Orienter vers une structure de l'insertion (chantier, AI, ETTI, …);;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Demander la médiation emploi;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Création d'entreprise;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement travailleur non salarié;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement ASR CEIDRE;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier MDPH;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier retraite;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Soutenir l'accès au logement;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire le 1er Contrat d'Engagement Réciproque;;Objectif : Autres;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Soutenir le parcours professionnel (emploi, formation, …);;Contrat d'Engagement Réciproque
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement global Axe 2 (orientation Pôle Emploi);;Fiche prescription axe 2 et 3
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Orienter vers une structure de l'insertion (chantier, AI, ETTI, …);;Fiche de demande Action PVI
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Demander la médiation emploi;;Fiche prescription PDIE FAII PST
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Création d'entreprise;;Fiche orientation prescription médiation emploi
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement travailleur non salarié;;Demande Diagnostic T.I. BRSA
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement ASR CEIDRE;;Fiche d’orientation, prescription psychologique
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier MDPH;;https://www.service-public.fr/particuliers/vosdroits/R19993
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier retraite;;https://mdphenligne.cnsa.fr/v2/mdph/85/inscription
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Soutenir l'accès au logement;;https://aleop.paysdelaloire.fr/carte-mobi
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Accompagner le budget;;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Soutenir la mobilité (MOVEA, transport solidaire, PST, …);;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Demander le psychologue insertion;;
@@ -206,17 +318,17 @@ AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement R
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Initier ou maintenir un parcours santé;;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Solliciliter un FAII;;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Demander un réorientation Pôle Emploi;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Autre;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Soutenir le parcours professionnel (emploi, formation, …);;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement global Axe 2 (orientation Pôle Emploi);;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Orienter vers une structure de l'insertion (chantier, AI, ETTI, …);;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Demander la médiation emploi;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Création d'entreprise;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement travailleur non salarié;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement ASR CEIDRE;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier MDPH;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier retraite;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Soutenir l'accès au logement;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Renouveler le Contrat d'Engagement Réciproque;;Objectif : Autres;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Soutenir le parcours professionnel (emploi, formation, …);;Contrat d'Engagement Réciproque
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement global Axe 2 (orientation Pôle Emploi);;Fiche prescription axe 2 et 3
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Orienter vers une structure de l'insertion (chantier, AI, ETTI, …);;Fiche de demande Action PVI
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Demander la médiation emploi;;Fiche prescription PDIE FAII PST
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Création d'entreprise;;Fiche orientation prescription médiation emploi
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement travailleur non salarié;;Demande Diagnostic T.I. BRSA
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Demander l'accompagnement ASR CEIDRE;;Fiche d’orientation, prescription psychologique
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier MDPH;;https://www.service-public.fr/particuliers/vosdroits/R19993
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Déposer un dossier retraite;;https://mdphenligne.cnsa.fr/v2/mdph/85/inscription
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Soutenir l'accès au logement;;https://aleop.paysdelaloire.fr/carte-mobi
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Accompagner le budget;;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Soutenir la mobilité (MOVEA, transport solidaire, PST, …);;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Demander le psychologue insertion;;
@@ -224,34 +336,85 @@ AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagem
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Initié ou maintenir un parcours santé;;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Solliciliter un FAII;;
AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Demander un réorientation Pôle Emploi;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Autre;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;RSA;Faire un avenant au Contrat d'Engagement Réciproque;;Objectif : Autres;;
AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Informer, conseiller;;;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU bons alimentaires;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU bons hygiène;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU bons carburant;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU virement;;
-AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Solliciter le comité FAJ;;Objectif : Aide financière;;
+AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU bons alimentaires;ACCORD;Imprimé unique
+AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU bons alimentaires;REFUS;Imprimé unique
+AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU bons hygiène;ACCORD;FAJ Attestation de prise en charge
+AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU bons hygiène;REFUS;FAJ Attestation de prise en charge
+AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU bons carburant;ACCORD;
+AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU bons carburant;REFUS;
+AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU virement;ACCORD;
+AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Demander une aide FAJ;;Objectif : SU virement;REFUS;
+AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Solliciter le comité FAJ;;Objectif : Aide financière;ACCORD;Imprimé unique
+AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Solliciter le comité FAJ;;Objectif : Aide financière;REFUS;Imprimé unique
AD - INSERTION SOCIALE PROFESSIONNELLE;JEUNES 16/25 AIDE FINANCIERE INSERTION;Solliciter le comité FAJ;;Objectif : Action d’accompagnement;;
AD - SANTE;;Informer, conseiller;;;;
AD - SANTE;;Orienter vers une structure de soins (CMP, psychologue, cure, …);;;;
+AD - SANTE;;Instruire un dossier MDPH;;;;https://www.service-public.fr/particuliers/vosdroits/R19993
AD - SANTE;;Instruire un dossier MDPH;;;;
+AD - SANTE;;Instruire un dossier MDPH;;;;https://mdphenligne.cnsa.fr/v2/mdph/85/inscription
AD - SANTE;;Accompagner le dépôt de dossier de pension d'invalidité;;;;
-AD - SANTE;;Instruire le dossier Complémentaire santé ACS;;;;
+AD - SANTE;;Instruire le dossier Complémentaire santé ACS;;;;https://www.ameli.fr/sites/default/files/formulaires/596542/formulaire_s3711_-_demande_complementaire_sante_solidaire_-_assurance_maladie.pdf
AD – ACCOMPAGNEMENT SPECIFIQUE;;Informer, conseiller;;;;
-AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Procéder à une élection de domicile;;
-AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander une aide financière;;
-AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander un interprète;;
-AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Prendre contact avec le CADA;;
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Procéder à une élection de domicile;Première demande;https://www.service-public.fr/particuliers/vosdroits/R44660
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Procéder à une élection de domicile;Renouvellement;https://www.ameli.fr/sites/default/files/formulaires/93/s3720g-demande-aide-medicale-etat-ame-2021.pdf
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Procéder à une élection de domicile;Radiation;https://aleop.paysdelaloire.fr/carte-mobi
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander une aide financière;ACCORD;
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander une aide financière;REFUS;
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander un interprète;ACCORD;
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander un interprète;REFUS;
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Prendre contact avec le CADA ou les associations;;
AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Aider à la constitution de dossier auprès de la préfecture;;
-AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Faire le lien avec les associations;;
-AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander une aide médicale d'état;;
-AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander une carte mobilité;;
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander une aide médicale d'état;ACCORD;
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander une aide médicale d'état;REFUS;
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander une carte mobilité;ACCORD;
+AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Demander une carte mobilité;REFUS;
AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Accompagner pour la scolarité des enfants (crèches, collège, péri scolaire, cantine…);;
AD – ACCOMPAGNEMENT SPECIFIQUE;;Accompagner des publics spécifiques;;Objectif : Aider à la compréhension du français;;
ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Informer, conseiller;;;;
ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Orienter vers une autre structure;;;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Instruire une première demande d'Accompagnement Educatif de Prevention;;;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Demander le renouvellement de l'Accompagnement Educatif de Prévention;;;;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Médiatiser les relations familiales;;Evaluation demande de passage en IRCP
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander le passage en IRCP;ACCORD;Demande ASE
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander le passage en IRCP;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place TISF;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place TISF;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander le renouvellement TISF;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander le renouvellement TISF;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place AED;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place AED;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place AESF;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place AESF;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place d'un AP (accueil provisoire);ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place d'un AP (accueil provisoire);REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mesure ASMI;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mesure ASMI;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une entrée en centre maternelle;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une entrée en centre maternelle;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une entrée en centre parental;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une entrée en centre parental;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une entrée en Unité Mère Enfant (UME);ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une entrée en Unité Mère Enfant (UME);REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une MJAGBF;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une MJAGBF;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une AED TDC;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une AED TDC;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander la désignation un TDC;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander la désignation un TDC;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander un CAP ASE;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander un CAP ASE;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une AMAE (allocation mensuelle d'aide éducative);ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une AMAE (allocation mensuelle d'aide éducative);REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une allocation socio-éducatif spécifique;ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une allocation socio-éducatif spécifique;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander un CAFI (aides fi);ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander un CAFI (aides fi);REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une autre aide (associations…);ACCORD;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une autre aide (associations…);REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Instruire une première demande d'Accompagnement Educatif de Prevention;;;ACCORD;Formulaire AEP
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Instruire une première demande d'Accompagnement Educatif de Prevention;;;REFUS;
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Demander le renouvellement de l'Accompagnement Educatif de Prévention;;;ACCORD;Formulaire AEP
+ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Demander le renouvellement de l'Accompagnement Educatif de Prévention;;;REFUS;
ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Excercer un Accompagnement Educatif de Prévention;;Problèmatique : : Conduite à risque / Passage à l'acte isolé de l'enfant/adolescent;;
ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Excercer un Accompagnement Educatif de Prévention;;Problèmatique : Comportement de l'enfant/adolescent en difficulté avec les limites, les interdits, les règles sociales;;
ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Excercer un Accompagnement Educatif de Prévention;;Problèmatique : Difficultés de l'enfant en milieu scolaire ou extra-scolaire;;
@@ -284,77 +447,66 @@ ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Conclure un Accompagnement Educatif de
ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Conclure un Accompagnement Educatif de Prévention;;;Résultat : Renouvellement de l’AEP dans l’attente d’une mesure ASE;
ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Conclure un Accompagnement Educatif de Prévention;;;Résultat : Renouvellement de l’AEP pour poursuivre les objectifs engagés;
ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Réaliser une permanence éducative;;;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Médiatiser les relations familiales;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander le passage en IRCP;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place TISF;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander le renouvellement TISF;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place AED;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place AESF;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mise en place d'un AP (accueil provisoire);;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une mesure ASMI;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une entrée en centre maternelle;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une entrée en centre parental;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une entrée en Unité Mère Enfant (UME);;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une MJAGBF;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une AED TDC;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander la désignation un TDC;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander un CAP ASE;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une AMAE (allocation mensuelle d'aide éducative);;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une allocation socio-éducatif spécifique;;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander un CAFI (aides fi);;
-ENFANT / FAMILLE;SOUTIEN A LA PARENTALITE;Solliciter les moyens dans le cadre d'un accompagnement à la parentalité ;;Demander une autre aide (associations…);;
-ENFANT / FAMILLE;ENFANT PREVENTION;Alerter la CRIP;;Motif : arrêt de l'adhésion des parents à l'accompagnement du soutien à la parentalité;;
+ENFANT / FAMILLE;ENFANT PREVENTION;Alerter la CRIP;;Motif : arrêt de l'adhésion des parents à l'accompagnement du soutien à la parentalité;;FRIP
ENFANT / FAMILLE;ENFANT PREVENTION;Alerter la CRIP;;Motif : violence intra-familiale;;
ENFANT / FAMILLE;ENFANT PREVENTION;Alerter la CRIP;;Motif : suite à une ISG;;
ENFANT / FAMILLE;ENFANT PREVENTION;Alerter la CRIP;;;Faire une FRIP;
ENFANT / FAMILLE;ENFANT PREVENTION;Alerter la CRIP;;;Demander une MJIE;
-ENFANT / FAMILLE;ENFANT PREVENTION;Alerter la CRIP;;;Demander une mesure de protection;
+ENFANT / FAMILLE;ENFANT PREVENTION;Alerter la CRIP;;;Demander une mesure de protection enfant;
ENFANT / FAMILLE;ENFANT PREVENTION;Alerter la CRIP;;;Demander un OPP;
ENFANT / FAMILLE;ENFANT PREVENTION;Alerter la CRIP;;;Demander un placement;
-ENFANT / FAMILLE;ENFANT PREVENTION;Alerter l'ASE (RJA) pour situation connue;;Motif : arrêt de l'adhésion des parents à l'accompagnement du soutien à la parentalité;;
-ENFANT / FAMILLE;ENFANT PREVENTION;Alerter l'ASE (RJA) pour situation connue;;Motif : violence intra-familiale;;
+ENFANT / FAMILLE;ENFANT PREVENTION;Alerter l'ASE (RJA) pour situation connue;;Motif : arrêt de l'adhésion des parents à l'accompagnement du soutien à la parentalité;;Evaluation type
+ENFANT / FAMILLE;ENFANT PREVENTION;Alerter l'ASE (RJA) pour situation connue;;Motif : violence intra-familiale;;Demande ASE
ENFANT / FAMILLE;ENFANT PREVENTION;Alerter l'ASE (RJA) pour situation connue;;Motif : suite à une ISG;;
ENFANT / FAMILLE;ENFANT PREVENTION;Alerter l'ASE (RJA) pour situation connue;;;Demander une MJIE;
ENFANT / FAMILLE;ENFANT PREVENTION;Alerter l'ASE (RJA) pour situation connue;;;Demander une mesure de protection;
ENFANT / FAMILLE;ENFANT PREVENTION;Alerter l'ASE (RJA) pour situation connue;;;Demander un OPP;
ENFANT / FAMILLE;ENFANT PREVENTION;Alerter l'ASE (RJA) pour situation connue;;;Demander un placement;
-ENFANT / FAMILLE;ENFANT PREVENTION;Répondre à Eléments en votre possession;;;;
-ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation IP pour la CRIP;;;Evaluation sans suite;
-ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation IP pour la CRIP;;;Evaluation demande d'accompagnement médico-sociale;
-ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation IP pour la CRIP;;;Evaluation pur demande de MJIE;
+ENFANT / FAMILLE;ENFANT PREVENTION;Répondre à Eléments en votre possession;;;;Trame éléments en votre possession
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation IP pour la CRIP;;;Evaluation sans suite;Evaluation IP
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation IP pour la CRIP;;;Evaluation demande d'accompagnement médico-sociale;Premier courrier parents
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation IP pour la CRIP;;;Evaluation pur demande de MJIE;Second courrier parents
ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation IP pour la CRIP;;;Evaluation pour demande d'AEMO;
ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation IP pour la CRIP;;;Evaluation pour demande de placement;
ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation IP pour la CRIP;;;Evaluation pour demande d'OPP;
ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation IP pour la CRIP;;;Note complémentaire actualisation;
-ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation pour l'ASE;;;Evaluation sans suite;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation pour l'ASE;;;Evaluation sans suite;Evaluation IP
ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation pour l'ASE;;;Evaluation demande d'accompagnement médico-sociale;
ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation pour l'ASE;;;Evaluation pur demande de MJIE;
ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation pour l'ASE;;;Evaluation pour demande d'AEMO;
ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation pour l'ASE;;;Evaluation pour demande de placement;
ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation pour l'ASE;;;Evaluation pour demande d'OPP;
ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Réaliser une Evaluation pour l'ASE;;;Note complémentaire actualisation;
-ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander un AEP;;
-ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander une mise en place AED;;
-ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander une mise en place TISF;;
-ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander la mise en place d'un Accueil Provisoire;;
-ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander l'orientation vers d'autres structures (soins, MDA, …);;
-ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander l'entrée en centre maternel ;;
-ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander l'entrée unité mère / enfant;;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander un AEP;ACCORD;Demande ASE
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander un AEP;REFUS;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander une mise en place AED;ACCORD;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander une mise en place AED;REFUS;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander une mise en place TISF;ACCORD;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander une mise en place TISF;REFUS;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander la mise en place d'un Accueil Provisoire;ACCORD;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander la mise en place d'un Accueil Provisoire;REFUS;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander l'orientation vers d'autres structures (soins, MDA, …);ACCORD;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander l'orientation vers d'autres structures (soins, MDA, …);REFUS;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander l'entrée en centre maternel ;ACCORD;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander l'entrée en centre maternel ;REFUS;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander l'entrée unité mère / enfant;ACCORD;
+ENFANT / FAMILLE;INFORMATIONS PREOCCUPANTES;Mettre en place un accompagnement médicosocial suite à une IP;;Demander l'entrée unité mère / enfant;REFUS;
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Informer, conseiller;;;;
-ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Protéger des violences intra familiales;;Orienter vers SOS femme;;
-ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Protéger des violences intra familiales;;Proposer un conseiller ou une thérapie conjugale;;
+ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Protéger des violences intra familiales;;Orienter vers SOS femme;;VIF
+ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Protéger des violences intra familiales;;Proposer un conseiller ou une thérapie conjugale;;FRIP
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Protéger des violences intra familiales;;Proposer une médiation familiale;;
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Protéger des violences intra familiales;;Aider au dépôt de plainte;;
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Protéger des violences intra familiales;;Signaler un adulte vulnérable au procureur ;;
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Protéger des violences intra familiales;;Demander une mesure de protection majeur;;
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Protéger des violences intra familiales;;Faire une FRIP pour enfant en danger;;
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Protéger des violences intra familiales;;Instruire la fiche VIF;;
-ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Conseiller ;;
-ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Problématique : VIF;;
-ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Problématique : Difficultés éducatives;;
-ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Problématique : Protection de l’enfance;;
-ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Problématique : Violences sexuelles;;
-ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Problématique : Information suite à une séparation;;
+ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Conseiller ;;VIF
+ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Echanger les violences intra-familiales;;FRIP
+ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Intervenir dans le cadre de la protection de l’enfance;FRIP;Rapport d'évaluation signalement personne vulnérable
+ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Intervenir dans le cadre de la protection de l’enfance;FRIP, orientation MDA, orientation MDSF;Grille d'aide à l'évaluation d'une situation de vulnérabilité
+ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Intervenir dans le cadre de la protection de l’enfance;FRIP, orientation MDA, orientation MDSF;
+ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Echanger sur les violences sexuelles;;
+ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Informer suite à une séparation;;
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Orienter vers l'AS de secteur;;
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Orienter vers SOS femme;;
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Orienter vers un accompagnement CMP/libéral;;
@@ -362,59 +514,261 @@ ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Aider au dépôt de plainte;;
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Signaler un adulte vulnérable au procureur ;;
ENFANT / FAMILLE;VIOLENCES INTRA-FAMILIALES;Réaliser l'intervention sociale en gendarmerie;;Demander une mesure de protection majeur;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le lieu d'accueil;;;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Mise en place TISF;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Demande aide financière / SU;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Demande SU;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Participation à des actions collectives;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Mise en place d'un loisir familial ;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Mise en place d'une aide transport;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Demande mise en place d'un accompagnement psychologique;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Construire le PPE;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Mise en place CJM;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Demande MDPH ;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Organiser la mise en place d'un loisir;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Elaborer le lien partenarial;;;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Demander une protection majeur vulnérable;;;;
-ENFANT PROTECTION;ACCUEIL PROVISOIRE;Demande de MJIE (mesure judiciaire d'investigation éducative);;;;
-ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le lieu d'accueil;;;;
-ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Mettre en place un soutien parental;;Mise en place TISF;;
-ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Mettre en place un soutien parental;;Demande aide financière;;
-ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Mettre en place un soutien parental;;Demande SU;;
-ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Mettre en place un soutien parental;;Demande de protection majeur vulnérable;;
-ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le mineur;;;;
-ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Elaborer le lien partenarial;;;;
-ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Mettre en place un soutien parental;;;;
-ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Accompagner le mineur;;Construire le PPE;;
-ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Accompagner le mineur;;Mise en place CJM;;
-ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Accompagner le mineur;;Organiser la participation à un camp de vacances;;
-ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le lieu d'accueil;;;;
-ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le mineur;;;;
-ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Elaborer le lien partenarial;;;;
-ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;;;;;
-ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le lieu d'accueil;;;;
-ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;;;
-ENFANT PROTECTION;TUTELLE D'ETAT;Elaborer le lien partenarial;;;;
-ENFANT PROTECTION;AEMO TDC;Accompagner le lieu d'accueil;;;;
-ENFANT PROTECTION;AEMO TDC;Mettre en place un soutien parental;;;;
-ENFANT PROTECTION;AEMO TDC;Accompagner le mineur;;;;
-ENFANT PROTECTION;AEMO TDC;Elaborer le lien partenarial;;;;
-ENFANT PROTECTION;AEMO FAMILLE;Mettre en place un soutien parental;;;;
-ENFANT PROTECTION;AEMO FAMILLE;Accompagner le mineur;;;;
-ENFANT PROTECTION;AEMO FAMILLE;Elaborer le lien partenarial;;;;
-AGREMENT;ASSISTANT MATERNEL;Instruire une première demande;;;;
-AGREMENT;ASSISTANT MATERNEL;Instruire un renouvellement;;;;
-AGREMENT;ASSISTANT MATERNEL;Instruire une modification;;;;
-AGREMENT;ASSISTANT MATERNEL;Suivre un(e) ASSMAT;;;;
-AGREMENT;ASSISTANT MATERNEL;Contrôler un(e) ASSMAT;;;;
-AGREMENT;ASSISTANT MATERNEL;Accompagner un(e) ASSMAT;;;;
-AGREMENT;ASSISTANT FAMILIAL;Instruire une première demande;;;;
-AGREMENT;ASSISTANT FAMILIAL;Instruire un renouvellement;;;;
-AGREMENT;ASSISTANT FAMILIAL;Instruire une modification;;;;
-AGREMENT;ASSISTANT FAMILIAL;Suivre un(e) ASSFAM;;;;
-AGREMENT;ASSISTANT FAMILIAL;Contrôler un(e) ASSFAM;;;;
-AGREMENT;ASSISTANT FAMILIAL;Accompagner un(e) ASSFAM;;;;
-AGREMENT;FAMILLE D'ACCUEIL PA/PH;Contribuer à l'évaluation si Famille d'Accueil connue;;Première demande;;
-AGREMENT;FAMILLE D'ACCUEIL PA/PH;Contribuer à l'évaluation si Famille d'Accueil connue;;Renouvellement;;
-AGREMENT;FAMILLE D'ACCUEIL PA/PH;Contribuer à l'évaluation si Famille d'Accueil connue;;Modification;;
-AGREMENT;FAMILLE D'ACCUEIL PA/PH;Contribuer à l'évaluation si Famille d'Accueil connue;;Suivi;;
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le lieu d'accueil;;Accord préalable;;Accord préalable
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le lieu d'accueil;;Suggestion exceptionnelle;;Relance fiche observation
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le lieu d'accueil;;Relance ASSFAM pour fiche observation;;Note circonstanciée
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le lieu d'accueil;;Transmettre une IP;;
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le lieu d'accueil;;Informer le DA;;
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Mise en place TISF / aide ménagère;;Demande TISF aide-ménagère
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Demande aide financière / SU;;Demande aide financière
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Mise en place d'un loisir familial ;;Demande Secours Urgence
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Participation à des actions collectives;;Accord préalable
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Aide aux transports;;Demande transport
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Informer l'autorité administrative;;
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Mettre en place un soutien parental;;Informer l'autorité judiciaire;;
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;PPE;;Projet Pour l'Enfant
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Demande MDPH ;;https://www.formulaires.service-public.fr/gf/cerfa_15692.do
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Loisirs;;Dossier MDPH pour impression
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Santé;;Accord préalable
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Accompagnement psychologique;;Rapport d'échéance
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Aide aux transports;;Note circonstanciée
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Informer l'autorité administrative;;Bilan neuropsychologique
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Informer l'autorité judiciaire;;
+ENFANT PROTECTION;ACCUEIL PROVISOIRE;Accompagner le mineur;;Requête majeur vulnérable;;
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le lieu d'accueil;;Accord préalable;;Accord préalable
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le lieu d'accueil;;Suggestion exceptionnelle;;Relance fiche observation
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le lieu d'accueil;;Relance ASSFAM pour fiche observation;;Note circonstanciée
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le lieu d'accueil;;Transmettre une IP;;
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le lieu d'accueil;;Informer le DA;;
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Mettre en place un soutien parental;;Mise en place TISF / aide ménagère;;Demande TISF aide-ménagère
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Mettre en place un soutien parental;;Demande aide financière / SU;;Demande aide financière
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Mettre en place un soutien parental;;Mise en place d'un loisir familial ;;Demande Secours Urgence
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Mettre en place un soutien parental;;Participation à des actions collectives;;Accord préalable
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Mettre en place un soutien parental;;Aide aux transports;;Demande transport
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Mettre en place un soutien parental;;Informer l'autorité administrative;;
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Mettre en place un soutien parental;;Informer l'autorité judiciaire;;
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le mineur;;PPE;;Projet Pour l'Enfant
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le mineur;;Rdv 17 ans;;https://www.formulaires.service-public.fr/gf/cerfa_15692.do
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le mineur;;Demande MDPH ;;Dossier MDPH pour impression
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le mineur;;Loisirs;;Accord préalable
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le mineur;;Santé;;Rapport d'échéance
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le mineur;;Accompagnement psychologique;;Note circonstanciée
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le mineur;;Aide aux transports;;Bilan neuropsychologique
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le mineur;;Requête majeur vulnérable;;Contrat Jeune Majeur
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le mineur;;Informer l'autorité administrative;;
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT DANS UN LIEU D'ACCUEIL;Accompagner le mineur;;Informer l'autorité judiciaire;;
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Mettre en place un soutien parental;;Mise en place TISF / aide ménagère;;Demande TISF aide-ménagère
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Mettre en place un soutien parental;;Demande aide financière / SU;;Demande aide financière
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Mettre en place un soutien parental;;Mise en place d'un loisir familial ;;Demande Secours Urgence
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Mettre en place un soutien parental;;Participation à des actions collectives;;Accord préalable
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Mettre en place un soutien parental;;Aide aux transports;;Demande transport
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Mettre en place un soutien parental;;Informer l'autorité administrative;;
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Mettre en place un soutien parental;;Informer l'autorité judiciaire;;
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Accompagner le mineur;;PPE;;Projet Pour l'Enfant
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Accompagner le mineur;;Demande MDPH ;;https://www.formulaires.service-public.fr/gf/cerfa_15692.do
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Accompagner le mineur;;Accord préalable;;Dossier MDPH pour impression
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Accompagner le mineur;;Accompagnement psychologique;;Accord préalable
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Accompagner le mineur;;Aide aux transports;;Rapport d'échéance
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Accompagner le mineur;;Informer l'autorité administrative;;Note circonstanciée
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Accompagner le mineur;;Informer l'autorité judiciaire;;Bilan neuropsychologique
+ENFANT PROTECTION;ASSISTANCE EDUCATIVE DE PLACEMENT CHEZ LE PARENT;Accompagner le mineur;;Requête majeur vulnérable;;
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le lieu d'accueil;;Accord préalable;;Accord préalable
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le lieu d'accueil;;Transmettre une IP;;Note circonstanciée
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le lieu d'accueil;;Informer le DA;;
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le mineur;;PPE;;Projet Pour l'Enfant
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le mineur;;Demande MDPH ;;https://www.formulaires.service-public.fr/gf/cerfa_15692.do
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le mineur;;Loisirs;;Dossier MDPH pour impression
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le mineur;;Santé;;Accord préalable
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le mineur;;Accompagnement psychologique;;Rapport d'échéance
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le mineur;;Aide aux transports;;Note circonstanciée
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le mineur;;Informer l'autorité administrative;;Bilan neuropsychologique
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le mineur;;Informer l'autorité judiciaire;;Accord préalable
+ENFANT PROTECTION;DELEGATION D'AUTORITE PARENTALE;Accompagner le mineur;;Requête majeur vulnérable;;
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le lieu d'accueil;;Accord préalable;;Accord préalable
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le lieu d'accueil;;Transmettre une IP;;Note circonstanciée
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le lieu d'accueil;;Informer le DA;;
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le mineur;;PPE;;Projet Pour l'Enfant
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le mineur;;Rdv 17 ans;;https://www.formulaires.service-public.fr/gf/cerfa_15692.do
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le mineur;;Demande MDPH ;;Dossier MDPH pour impression
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le mineur;;Loisirs;;Accord préalable
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le mineur;;Santé;;Rapport d'échéance
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le mineur;;Accompagnement psychologique;;Note circonstanciée
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le mineur;;Aide aux transports;;Bilan neuropsychologique
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le mineur;;Informer le conseil de famille;;
+ENFANT PROTECTION;TUTELLE DEPARTEMENTALE;Accompagner le mineur;;Requête majeur vulnérable;;
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le lieu d'accueil;;Accord préalable;;Accord préalable
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le lieu d'accueil;;Transmettre une IP;;Note circonstanciée
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le lieu d'accueil;;Informer le DA;;
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;PPE;;Projet Pour l'Enfant
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;Rdv 17 ans;;https://www.formulaires.service-public.fr/gf/cerfa_15692.do
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;Demande MDPH ;;Dossier MDPH pour impression
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;Loisirs;;Accord préalable
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;Santé;;Rapport d'échéance
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;Accompagnement psychologique;;Note circonstanciée
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;Aide aux transports;;Bilan neuropsychologique
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;Informer le conseil de famille;;
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;Requête majeur vulnérable;;
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;Informer l'autorité administrative;;
+ENFANT PROTECTION;TUTELLE D'ETAT;Accompagner le mineur;;Informer l'autorité judiciaire;;
+ENFANT PROTECTION;AEMO TDC;Accompagner le lieu d'accueil;;Demande aide financière / SU;;Demande aide financière
+ENFANT PROTECTION;AEMO TDC;Accompagner le lieu d'accueil;;Accord préalable;;Demande Secours Urgence
+ENFANT PROTECTION;AEMO TDC;Accompagner le lieu d'accueil;;Aide aux transports;;Accord préalable
+ENFANT PROTECTION;AEMO TDC;Accompagner le lieu d'accueil;;Informer l'autorité judiciaire;;
+ENFANT PROTECTION;AEMO TDC;Mettre en place un soutien parental;;Mise en place TISF / aide ménagère;;Demande TISF aide-ménagère
+ENFANT PROTECTION;AEMO TDC;Mettre en place un soutien parental;;Mise en place d'un loisir familial ;;Accord préalable
+ENFANT PROTECTION;AEMO TDC;Mettre en place un soutien parental;;Participation à des actions collectives;;Demande transport
+ENFANT PROTECTION;AEMO TDC;Mettre en place un soutien parental;;Aide aux transports;;Note circonstanciée
+ENFANT PROTECTION;AEMO TDC;Mettre en place un soutien parental;;Informer l'autorité administrative;;
+ENFANT PROTECTION;AEMO TDC;Mettre en place un soutien parental;;Informer l'autorité judiciaire;;
+ENFANT PROTECTION;AEMO TDC;Accompagner le mineur;;PPE;;Projet Pour l'Enfant
+ENFANT PROTECTION;AEMO TDC;Accompagner le mineur;;Demande MDPH ;;https://www.formulaires.service-public.fr/gf/cerfa_15692.do
+ENFANT PROTECTION;AEMO TDC;Accompagner le mineur;;Accompagnement psychologique;;Dossier MDPH pour impression
+ENFANT PROTECTION;AEMO TDC;Accompagner le mineur;;Aide aux transports;;Accord préalable
+ENFANT PROTECTION;AEMO TDC;Accompagner le mineur;;Requête majeur vulnérable;;Rapport d'échéance
+ENFANT PROTECTION;AEMO TDC;Accompagner le mineur;;Informer l'autorité administrative;;Note circonstanciée
+ENFANT PROTECTION;AEMO TDC;Accompagner le mineur;;Informer l'autorité judiciaire;;Bilan neuropsychologique
+ENFANT PROTECTION;AEMO FAMILLE;Mettre en place un soutien parental;;Mise en place TISF / aide ménagère;;Demande TISF aide-ménagère
+ENFANT PROTECTION;AEMO FAMILLE;Mettre en place un soutien parental;;Demande aide financière / SU;;Demande aide financière
+ENFANT PROTECTION;AEMO FAMILLE;Mettre en place un soutien parental;;Mise en place d'un loisir familial ;;Demande Secours Urgence
+ENFANT PROTECTION;AEMO FAMILLE;Mettre en place un soutien parental;;Participation à des actions collectives;;Accord préalable
+ENFANT PROTECTION;AEMO FAMILLE;Mettre en place un soutien parental;;Aide aux transports;;Demande transport
+ENFANT PROTECTION;AEMO FAMILLE;Mettre en place un soutien parental;;Informer l'autorité administrative;;Note circonstanciée
+ENFANT PROTECTION;AEMO FAMILLE;Mettre en place un soutien parental;;Informer l'autorité judiciaire;;
+ENFANT PROTECTION;AEMO FAMILLE;Accompagner le mineur;;PPE;;Projet Pour l'Enfant
+ENFANT PROTECTION;AEMO FAMILLE;Accompagner le mineur;;Demande MDPH ;;https://www.formulaires.service-public.fr/gf/cerfa_15692.do
+ENFANT PROTECTION;AEMO FAMILLE;Accompagner le mineur;;Loisirs;;Dossier MDPH pour impression
+ENFANT PROTECTION;AEMO FAMILLE;Accompagner le mineur;;Santé;;Accord préalable
+ENFANT PROTECTION;AEMO FAMILLE;Accompagner le mineur;;Accompagnement psychologique;;Rapport d'échéance
+ENFANT PROTECTION;AEMO FAMILLE;Accompagner le mineur;;Aide aux transports;;Note circonstanciée
+ENFANT PROTECTION;AEMO FAMILLE;Accompagner le mineur;;Requête majeur vulnérable;;Bilan neuropsychologique
+ENFANT PROTECTION;AEMO FAMILLE;Accompagner le mineur;;Informer l'autorité administrative;;
+ENFANT PROTECTION;AEMO FAMILLE;Accompagner le mineur;;Informer l'autorité judiciaire;;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Analyse des besoins à domicile;;Information - conseil - orientation;Refus de l'usager ou famille;Certificat d'accompagnement
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Analyse des besoins à domicile;;Accompagnement dans la démarche;Refus de l'usager ou famille;Projet personnalisé personnes âgées à domicile
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Analyse des besoins à domicile;;Accompagnement dans la démarche;Refus de l'usager ou famille;Courrier mise à disposition
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Analyse des besoins à domicile;;Accompagnement dans la démarche;Refus de l'usager ou famille;Formulaire Parcours
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Aide humaine/ Auxiliaire de Vie;;Information - conseil - orientation;Refus de l'usager ou famille;https://www.vendee-senior.fr/Services-d-aide-Etablissements/Annuaire-des-services-d-aide-a-domicile
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Aide humaine/ Auxiliaire de Vie;;Information - conseil - orientation;Refus du service / solution manquante;Liste mandataires autorisés
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Aide humaine/ Auxiliaire de Vie;;Accompagnement dans la démarche;Refus de l'usager ou famille;Fiche adhésion au CESU
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Aide humaine/ Auxiliaire de Vie;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Garde de nuit / Accueil de nuit;;Information - conseil - orientation;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Garde de nuit / Accueil de nuit;;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Garde de nuit / Accueil de nuit;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Garde de nuit / Accueil de nuit;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Accueil de jour;;Information - conseil - orientation;Refus de l'usager ou famille;Liste accueils de jour
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Accueil de jour;;Information - conseil - orientation;Refus du service / solution manquante;https://trajectoire.sante-ra.fr/Trajectoire/
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Accueil de jour;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Accueil de jour;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Portage de repas;;Information - conseil - orientation;Refus de l'usager ou famille;Liste portages de repas
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Portage de repas;;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Portage de repas;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Portage de repas;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Téléalarme;;Information - conseil - orientation;Refus de l'usager ou famille;Liste téléalarmes
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Téléalarme;;Accompagnement dans la démarche;Refus de l'usager ou famille;Aide installation téléalarme
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Suivi en sortie d'hospitalisation, HAD;;Information - conseil - orientation;Refus de l'usager ou famille;Formulaire Parcours
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Suivi en sortie d'hospitalisation, HAD;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Transport;;Information - conseil - orientation;Refus du service / solution manquante;https://www.agirc-arrco.fr/action-sociale/personnes-agees/
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Transport;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;CESU;;Information - conseil - orientation;;Fiche adhésion CESU
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;CESU;;Accompagnement dans la démarche;;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Isolement / Animation;;Service Prévention Séniors;;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Isolement / Animation;;Dispositif lutte contre l'isolement;;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Médiation familiale;;;;http://www.udaf85.fr/services-formations/mediation-familiale/
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;Médiation familiale;;;;http://www.areams.fr/nos-activites/mediation-familiale/
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;MAIA, gestion de cas;;accompagnement en gestion cas;Refus de l'usager ou famille;Formulaire Parcours
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;MAINTIEN A DOMICILE;MAIA, gestion de cas;;accompagnement en gestion cas;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;Aide sociale;;Information - conseil - orientation;;https://www.vendee-senior.fr/Formulaires-utiles
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Information - conseil - orientation;;"https://www.vendee-senior.fr/Formulaires-utiles
+"
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Accompagnement dans la démarche;;Courrier demande certificat médical
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Constitution du dossier de 1ère demande;;Courrier demande révision ADPA
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Demande de révision APA simplifié;;Fiche plan d'aide seul
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Demande de révision APA classique;;Support d'évaluation multidimentionnel
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Substitution;;Fiche majoration pour hospitalisation du proche aidant
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Demande d'ADPA accélérée;;Fiche identification du proche aidant
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Evaluation ADPA - 1ère demande;;Grille AGGIR
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Evaluation ADPA - révision classique;;Courrier demande avis d'impôt
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Evaluation ADPA - révision simplifiée;;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Evaluation ADPA accélérée;;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;ADPA;;Majoration pour hospitalisation de l'aidant;;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;CARSAT;;Information - conseil - orientation;;https://www.partenairesactionsociale.fr/sites/ppas/home.html
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;CARSAT;;Constitution du dossier de 1ère demande;;Dossier ASIR
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;CARSAT;;Evaluation CARSAT;;Dossier PAP Fonction Publique
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;MDPH;;Information - conseil - orientation;;https://www.formulaires.service-public.fr/gf/cerfa_15692.do
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;MDPH;;Accompagnement dans la démarche;;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;Autres (ONAC, caisse de retraite, protection sociale, budget…);;Information - conseil - orientation;;Dossier ONAC
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;ACCES AUX DROITS;Autres (ONAC, caisse de retraite, protection sociale, budget…);;Accompagnement dans la démarche;;Dossier ligue contre le cancer
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;EQAAR, équipe d'appui;;Information - conseil - orientation;Refus de l'usager ou famille;Formulaire Parcours
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;EQAAR, équipe d'appui;;Information - conseil - orientation;Refus du service / solution manquante;Formulaire EQAAR - ADAMAD
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;EQAAR, équipe d'appui;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;EQAAR, équipe d'appui;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;ESA;;Information - conseil - orientation;Refus de l'usager ou famille;Formulaire Parcours
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;ESA;;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;ESA;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;ESA;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Paramédicaux (kiné, ortho…);;Information - conseil - orientation;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Paramédicaux (kiné, ortho…);;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Paramédicaux (kiné, ortho…);;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Paramédicaux (kiné, ortho…);;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Médecins libéraux;;Coordination;;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Médecins libéraux;;;Solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Hospitalisation;;Information - conseil - orientation;;Formulaire Parcours
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Hospitalisation;;Accompagnement dans la démarche;;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;RESPA, EMM;;Information - conseil - orientation;;Formulaire Parcours
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Consultation mémoire, HDJ;;Information - conseil - orientation;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Consultation mémoire, HDJ;;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Consultation mémoire, HDJ;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;Consultation mémoire, HDJ;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;SSIAD, IDEL;;Information - conseil - orientation;Refus de l'usager ou famille;Formulaire Parcours
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;SSIAD, IDEL;;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;SSIAD, IDEL;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;SOINS / SANTE;SSIAD, IDEL;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;LOGEMENT;Adaptation / aide technique;;Information - conseil - réorientation;;Formulaire Parcours
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;LOGEMENT;Adaptation / aide technique;;Accompagnement dans la démarche;;Formulaire EQAAR - ADAMAD
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;LOGEMENT;Insalubrité/incurie;;Information - conseil - réorientation;;Grille signalement incurie habitat indigne
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;LOGEMENT;Insalubrité/incurie;;Accompagnement dans la démarche;;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;AIDANT;Soutien psychologique;;Information - conseil - réorientation;Refus de l'usager ou famille;Formulaire Parcours
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;AIDANT;Soutien psychologique;;Accompagnement dans la démarche;Refus du service / solution manquante;Formulaire EQAAR - ADAMAD
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;AIDANT;Soutien psychologique;;Information - conseil - réorientation;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;AIDANT;Soutien psychologique;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;AIDANT;Aides aux aidants (association, nid des aidants …);;Information - conseil - réorientation;Refus de l'usager ou famille;Formulaire Parcours
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;AIDANT;Aides aux aidants (association, nid des aidants …);;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;PROTECTION JURIDIQUE;Requête pour protection juridique;;Information - conseil - réorientation;;Rapport d'évaluation signalement personne vulnérable
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;PROTECTION JURIDIQUE;Requête pour protection juridique;;Accompagnement dans la démarche;;URL sur Grille d'aide à l'évaluation d'une situation de vulnérabilité
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;PROTECTION JURIDIQUE;Requête pour protection juridique;;Accompagnement dans la démarche;;https://www.service-public.fr/simulateur/calcul/15891
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;PROTECTION JURIDIQUE;Signalement au procureur;;;;Rapport d'évaluation signalement personne vulnérable
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;PROTECTION JURIDIQUE;Signalement au procureur;;;;URL sur Grille d'aide à l'évaluation d'une situation de vulnérabilité
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;PROTECTION JURIDIQUE;Signalement au procureur;;;;Courrier accompagnement signalement au procureur
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Famille d'accueil;;Information - conseil - orientation;Refus de l'usager ou famille;https://trajectoire.sante-ra.fr/Trajectoire/
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Famille d'accueil;;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Famille d'accueil;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Famille d'accueil;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hebergement Permanent Médicalisé;;Information - conseil - orientation;Refus de l'usager ou famille;https://trajectoire.sante-ra.fr/Trajectoire/
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hebergement Permanent Médicalisé;;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hebergement Permanent Médicalisé;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hebergement Permanent Médicalisé;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hébergement temporaire Médicalisé;;Information - conseil - orientation;Refus de l'usager ou famille;https://trajectoire.sante-ra.fr/Trajectoire/
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hébergement temporaire Médicalisé;;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hébergement temporaire Médicalisé;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hébergement temporaire Médicalisé;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hébergement Spécialisé Médicalisé;;Information - conseil - orientation;Refus de l'usager ou famille;https://trajectoire.sante-ra.fr/Trajectoire/
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hébergement Spécialisé Médicalisé;;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hébergement Spécialisé Médicalisé;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Hébergement Spécialisé Médicalisé;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Structure non médicalisé Temporaire;;Information - conseil - orientation;Refus de l'usager ou famille;https://trajectoire.sante-ra.fr/Trajectoire/
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Structure non médicalisé Temporaire;;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Structure non médicalisé Temporaire;;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Structure non médicalisé Temporaire;;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Structure non médicalisé (Résidence autonomie…);;Information - conseil - orientation;Refus de l'usager ou famille;https://trajectoire.sante-ra.fr/Trajectoire/
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Structure non médicalisé (Résidence autonomie…);;Information - conseil - orientation;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Structure non médicalisé (Résidence autonomie…);;Accompagnement dans la démarche;Refus de l'usager ou famille;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Structure non médicalisé (Résidence autonomie…);;Accompagnement dans la démarche;Refus du service / solution manquante;
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Via trajectoire;;Information - conseil - orientation;;https://trajectoire.sante-ra.fr/Trajectoire/
+PROBLEMATIQUES LIEES AU VIEILLISSEMENT;STRUCTURE D'ACCUEIL;Via trajectoire;;Accompagnement dans les démarches;;
+PROBLEMATIQUE DEV PARENT;PROBLEMATIQUE DEV ENFANT;ACTION DEV PARENT;;;;
+PROBLEMATIQUE DEV PARENT;PROBLEMATIQUE DEV ENFANT;ACTION DEV PARENT;ACTION DEV ENFANT;Objectif dev;Résultat dev 1;Evaluation dev
+PROBLEMATIQUE DEV PARENT;ACTION DEV ENFANT;ACTION DEV PARENT;ACTION DEV ENFANT;Objectif dev;Résultat dev 2;Evaluation dev 2
+PROBLEMATIQUE DEV PARENT;ACTION DEV ENFANT;ACTION DEV PARENT;ACTION DEV ENFANT;Objectif dev 2;Résultat dev 3;
+PROBLEMATIQUE DEV PARENT;ACTION DEV ENFANT;ACTION DEV PARENT;ACTION DEV ENFANT;Objectif dev 2;Résultat dev 4;
+PROBLEMATIQUE DEV PARENT;ACTION DEV ENFANT;ACTION DEV PARENT;ACTION DEV ENFANT;;Résultat dev sans objectif 1;
+PROBLEMATIQUE DEV PARENT;ACTION DEV ENFANT;ACTION DEV PARENT;ACTION DEV ENFANT;;Résultat dev sans objectif 1;
diff --git a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php
index 65a45c2e6..000720a7f 100644
--- a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php
+++ b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php
@@ -23,6 +23,7 @@ use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
+
use function array_key_exists;
/**
diff --git a/src/Bundle/ChillPersonBundle/DependencyInjection/CompilerPass/AccompanyingPeriodTimelineCompilerPass.php b/src/Bundle/ChillPersonBundle/DependencyInjection/CompilerPass/AccompanyingPeriodTimelineCompilerPass.php
index c4f4dbdf3..31c04a59b 100644
--- a/src/Bundle/ChillPersonBundle/DependencyInjection/CompilerPass/AccompanyingPeriodTimelineCompilerPass.php
+++ b/src/Bundle/ChillPersonBundle/DependencyInjection/CompilerPass/AccompanyingPeriodTimelineCompilerPass.php
@@ -13,6 +13,7 @@ namespace Chill\PersonBundle\DependencyInjection\CompilerPass;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
+
use function in_array;
/**
diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php
index 5b4293226..9628da187 100644
--- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php
+++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php
@@ -42,8 +42,10 @@ use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Symfony\Component\Validator\GroupSequenceProviderInterface;
use UnexpectedValueException;
+
use function count;
use function in_array;
+
use const SORT_REGULAR;
/**
@@ -180,14 +182,6 @@ class AccompanyingPeriod implements
*/
private ?int $id = null;
- /**
- * @ORM\ManyToOne(
- * targetEntity=Comment::class
- * )
- * @Groups({"read"})
- */
- private ?Comment $initialComment = null;
-
/**
* @var string
* @ORM\Column(type="string", nullable=true)
@@ -229,6 +223,14 @@ class AccompanyingPeriod implements
*/
private ?Person $personLocation = null;
+ /**
+ * @ORM\ManyToOne(
+ * targetEntity=Comment::class
+ * )
+ * @Groups({"read"})
+ */
+ private ?Comment $pinnedComment = null;
+
/**
* @ORM\Column(type="text")
* @Groups({"read", "write"})
@@ -533,8 +535,10 @@ class AccompanyingPeriod implements
public function getCenters(): ?iterable
{
foreach ($this->getPersons() as $person) {
- if (!in_array($person->getCenter(), $centers ?? [], true)
- && null !== $person->getCenter()) {
+ if (
+ !in_array($person->getCenter(), $centers ?? [], true)
+ && null !== $person->getCenter()
+ ) {
$centers[] = $person->getCenter();
}
}
@@ -563,7 +567,7 @@ class AccompanyingPeriod implements
public function getComments(): Collection
{
return $this->comments->filter(function (Comment $c) {
- return $c !== $this->initialComment;
+ return $c !== $this->pinnedComment;
});
}
@@ -603,14 +607,6 @@ class AccompanyingPeriod implements
return $this->id;
}
- /**
- * @Groups({"read"})
- */
- public function getInitialComment(): ?Comment
- {
- return $this->initialComment;
- }
-
public function getIntensity(): ?string
{
return $this->intensity;
@@ -738,6 +734,14 @@ class AccompanyingPeriod implements
);
}
+ /**
+ * @Groups({"read"})
+ */
+ public function getPinnedComment(): ?Comment
+ {
+ return $this->pinnedComment;
+ }
+
/**
* @return Collection|SocialAction[] All the descendant social actions of all
* the descendants of the entity
@@ -1027,24 +1031,6 @@ class AccompanyingPeriod implements
return $this;
}
- /**
- * @Groups({"write"})
- */
- public function setInitialComment(?Comment $comment = null): self
- {
- if (null !== $this->initialComment) {
- $this->removeComment($this->initialComment);
- }
-
- if ($comment instanceof Comment) {
- $this->addComment($comment);
- }
-
- $this->initialComment = $comment;
-
- return $this;
- }
-
public function setIntensity(string $intensity): self
{
$this->intensity = $intensity;
@@ -1083,6 +1069,24 @@ class AccompanyingPeriod implements
return $this;
}
+ /**
+ * @Groups({"write"})
+ */
+ public function setPinnedComment(?Comment $comment = null): self
+ {
+ if (null !== $this->pinnedComment) {
+ $this->removeComment($this->pinnedComment);
+ }
+
+ if ($comment instanceof Comment) {
+ $this->addComment($comment);
+ }
+
+ $this->pinnedComment = $comment;
+
+ return $this;
+ }
+
public function setRemark(?string $remark = null): self
{
$this->remark = (string) $remark;
diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWork.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWork.php
index df4a5f5de..97424c2e3 100644
--- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWork.php
+++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWork.php
@@ -410,8 +410,10 @@ class AccompanyingPeriodWork implements AccompanyingPeriodLinkedWithSocialIssues
*/
public function setAccompanyingPeriod(?AccompanyingPeriod $accompanyingPeriod): self
{
- if ($this->accompanyingPeriod instanceof AccompanyingPeriod
- && $accompanyingPeriod !== $this->accompanyingPeriod) {
+ if (
+ $this->accompanyingPeriod instanceof AccompanyingPeriod
+ && $accompanyingPeriod !== $this->accompanyingPeriod
+ ) {
throw new LogicException('A work cannot change accompanyingPeriod');
}
diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluation.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluation.php
index 479bbfb87..f9fbc95f9 100644
--- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluation.php
+++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluation.php
@@ -268,7 +268,8 @@ class AccompanyingPeriodWorkEvaluation implements TrackCreationInterface, TrackU
if (
$accompanyingPeriodWork instanceof AccompanyingPeriodWork
&& $this->accompanyingPeriodWork instanceof AccompanyingPeriodWork
- && $this->accompanyingPeriodWork->getId() !== $accompanyingPeriodWork->getId()) {
+ && $this->accompanyingPeriodWork->getId() !== $accompanyingPeriodWork->getId()
+ ) {
throw new RuntimeException('Changing the ' .
'accompanyingPeriodWork is not allowed');
}
diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php
index 538cffc36..cbb4231b8 100644
--- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php
+++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php
@@ -144,8 +144,10 @@ class AccompanyingPeriodWorkEvaluationDocument implements \Chill\MainBundle\Doct
{
// if an evaluation is already associated, we cannot change the association (removing the association,
// by setting a null value, is allowed.
- if ($this->accompanyingPeriodWorkEvaluation instanceof AccompanyingPeriodWorkEvaluation
- && $accompanyingPeriodWorkEvaluation instanceof AccompanyingPeriodWorkEvaluation) {
+ if (
+ $this->accompanyingPeriodWorkEvaluation instanceof AccompanyingPeriodWorkEvaluation
+ && $accompanyingPeriodWorkEvaluation instanceof AccompanyingPeriodWorkEvaluation
+ ) {
if ($this->accompanyingPeriodWorkEvaluation !== $accompanyingPeriodWorkEvaluation) {
throw new RuntimeException('It is not allowed to change the evaluation for a document');
}
diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkGoal.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkGoal.php
index c31dfaa83..0c5517b71 100644
--- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkGoal.php
+++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkGoal.php
@@ -117,7 +117,8 @@ class AccompanyingPeriodWorkGoal
public function setAccompanyingPeriodWork(?AccompanyingPeriodWork $accompanyingPeriodWork): self
{
- if ($this->accompanyingPeriodWork instanceof AccompanyingPeriodWork
+ if (
+ $this->accompanyingPeriodWork instanceof AccompanyingPeriodWork
&& $accompanyingPeriodWork !== $this->accompanyingPeriodWork
&& null !== $accompanyingPeriodWork
) {
diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Comment.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Comment.php
index 75d1b2857..105633e43 100644
--- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Comment.php
+++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/Comment.php
@@ -112,6 +112,11 @@ class Comment implements TrackCreationInterface, TrackUpdateInterface
return $this->updatedBy;
}
+ public function isPinned(): bool
+ {
+ return $this->getAccompanyingPeriod()->getPinnedComment() === $this;
+ }
+
public function setAccompanyingPeriod(?AccompanyingPeriod $accompanyingPeriod): self
{
$this->accompanyingPeriod = $accompanyingPeriod;
diff --git a/src/Bundle/ChillPersonBundle/Entity/Household/Household.php b/src/Bundle/ChillPersonBundle/Entity/Household/Household.php
index 95aa83872..865526250 100644
--- a/src/Bundle/ChillPersonBundle/Entity/Household/Household.php
+++ b/src/Bundle/ChillPersonBundle/Entity/Household/Household.php
@@ -24,6 +24,7 @@ use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation as Serializer;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
+
use function count;
/**
@@ -254,7 +255,9 @@ class Household
public function getCurrentPersons(?DateTimeImmutable $now = null): Collection
{
return $this->getCurrentMembers($now)
- ->map(static function (HouseholdMember $m) { return $m->getPerson(); });
+ ->map(static function (HouseholdMember $m) {
+ return $m->getPerson();
+ });
}
public function getId(): ?int
diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php
index a3524d306..73b83f246 100644
--- a/src/Bundle/ChillPersonBundle/Entity/Person.php
+++ b/src/Bundle/ChillPersonBundle/Entity/Person.php
@@ -62,9 +62,7 @@ use function in_array;
* @DiscriminatorMap(typeProperty="type", mapping={
* "person": Person::class
* })
- * @PersonHasCenter(
- * groups={"general", "creation"}
- * )
+ * @PersonHasCenter
* @HouseholdMembershipSequential(
* groups={"household_memberships"}
* )
@@ -153,12 +151,8 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* @var DateTime
*
* @ORM\Column(type="date", nullable=true)
- * @Assert\Date(
- * groups={"general", "creation"}
- * )
- * @Birthdate(
- * groups={"general", "creation"}
- * )
+ * @Assert\Date
+ * @Birthdate
*/
private $birthdate;
@@ -241,10 +235,8 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* @var DateTimeImmutable
*
* @ORM\Column(type="date_immutable", nullable=true)
- * @Assert\Date(
- * groups={"general", "creation"}
- * )
- * @Assert\GreaterThan(propertyPath="birthDate")
+ * @Assert\Date
+ * @Assert\GreaterThanOrEqual(propertyPath="birthdate")
* @Assert\LessThanOrEqual("today")
*/
private ?DateTimeImmutable $deathdate = null;
@@ -256,8 +248,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
*
* @ORM\Column(type="text", nullable=true)
* @Assert\Email(
- * checkMX=true,
- * groups={"general", "creation"}
+ * checkMX=true
* )
*/
private $email = '';
@@ -268,12 +259,9 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* @var string
*
* @ORM\Column(type="string", length=255)
- * @Assert\NotBlank(
- * groups={"general", "creation"}
- * )
+ * @Assert\NotBlank
* @Assert\Length(
* max=255,
- * groups={"general", "creation"}
* )
*/
private $firstName;
@@ -294,9 +282,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* @var string
*
* @ORM\Column(type="string", length=9, nullable=true)
- * @Assert\NotNull(
- * groups={"general", "creation"}
- * )
+ * @Assert\NotNull
*/
private $gender;
@@ -340,12 +326,9 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* @var string
*
* @ORM\Column(type="string", length=255)
- * @Assert\NotBlank(
- * groups={"general", "creation"}
- * )
+ * @Assert\NotBlank
* @Assert\Length(
* max=255,
- * groups={"general", "creation"}
* )
*/
private $lastName;
@@ -373,9 +356,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* @var DateTime
*
* @ORM\Column(type="date", nullable=true)
- * @Assert\Date(
- * groups={"general", "creation"}
- * )
+ * @Assert\Date
*/
private ?DateTime $maritalStatusDate = null;
@@ -394,11 +375,9 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* @ORM\Column(type="text")
* @Assert\Regex(
* pattern="/^([\+{1}])([0-9\s*]{4,20})$/",
- * groups={"general", "creation"}
* )
* @PhonenumberConstraint(
* type="mobile",
- * groups={"general", "creation"}
* )
*/
private string $mobilenumber = '';
@@ -436,7 +415,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* )
* @Assert\Valid(
* traverse=true,
- * groups={"general", "creation"}
* )
*/
private $otherPhoneNumbers;
@@ -455,11 +433,9 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* @ORM\Column(type="text")
* @Assert\Regex(
* pattern="/^([\+{1}])([0-9\s*]{4,20})$/",
- * groups={"general", "creation"}
* )
* @PhonenumberConstraint(
* type="landline",
- * groups={"general", "creation"}
* )
*/
private string $phonenumber = '';
diff --git a/src/Bundle/ChillPersonBundle/Entity/PersonAltName.php b/src/Bundle/ChillPersonBundle/Entity/PersonAltName.php
index d233082c4..4fe1e5fca 100644
--- a/src/Bundle/ChillPersonBundle/Entity/PersonAltName.php
+++ b/src/Bundle/ChillPersonBundle/Entity/PersonAltName.php
@@ -12,6 +12,7 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
+use Symfony\Component\Serializer\Annotation\Groups;
/**
* PersonAltName.
@@ -34,6 +35,7 @@ class PersonAltName
* @var string
*
* @ORM\Column(name="key", type="string", length=255)
+ * @Groups({"write"})
*/
private $key;
@@ -41,6 +43,7 @@ class PersonAltName
* @var string
*
* @ORM\Column(name="label", type="text")
+ * @Groups({"write"})
*/
private $label;
diff --git a/src/Bundle/ChillPersonBundle/Entity/SocialWork/Evaluation.php b/src/Bundle/ChillPersonBundle/Entity/SocialWork/Evaluation.php
index aeb8d0a8d..1350ae6d8 100644
--- a/src/Bundle/ChillPersonBundle/Entity/SocialWork/Evaluation.php
+++ b/src/Bundle/ChillPersonBundle/Entity/SocialWork/Evaluation.php
@@ -12,6 +12,8 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Entity\SocialWork;
use DateInterval;
+use Doctrine\Common\Collections\ArrayCollection;
+use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation as Serializer;
@@ -45,12 +47,13 @@ class Evaluation
private ?DateInterval $notificationDelay = null;
/**
- * @ORM\ManyToOne(
+ * @ORM\ManyToMany(
* targetEntity=SocialAction::class,
* inversedBy="evaluations"
* )
+ * @ORM\JoinTable(name="chill_person_social_work_evaluation_action")
*/
- private ?SocialAction $socialAction = null;
+ private Collection $socialActions;
/**
* @ORM\Column(type="json")
@@ -59,6 +62,20 @@ class Evaluation
*/
private array $title = [];
+ public function __construct()
+ {
+ $this->socialActions = new ArrayCollection();
+ }
+
+ public function addSocialAction(SocialAction $socialAction): self
+ {
+ if (!$this->socialActions->contains($socialAction)) {
+ $this->socialActions->add($socialAction);
+ }
+
+ return $this;
+ }
+
public function getDelay(): ?DateInterval
{
return $this->delay;
@@ -74,9 +91,9 @@ class Evaluation
return $this->notificationDelay;
}
- public function getSocialAction(): ?SocialAction
+ public function getSocialActions(): Collection
{
- return $this->socialAction;
+ return $this->socialActions;
}
public function getTitle(): array
@@ -84,6 +101,15 @@ class Evaluation
return $this->title;
}
+ public function removeSocialAction(SocialAction $socialAction): self
+ {
+ if ($this->socialActions->contains($socialAction)) {
+ $this->socialActions->remove($socialAction);
+ }
+
+ return $this;
+ }
+
public function setDelay(DateInterval $delay): self
{
$this->delay = $delay;
@@ -98,13 +124,6 @@ class Evaluation
return $this;
}
- public function setSocialAction(?SocialAction $socialAction): self
- {
- $this->socialAction = $socialAction;
-
- return $this;
- }
-
public function setTitle(array $title): self
{
$this->title = $title;
diff --git a/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php b/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php
index c5ca7d18a..ec5e5a8e5 100644
--- a/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php
+++ b/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php
@@ -46,9 +46,9 @@ class SocialAction
private $desactivationDate;
/**
- * @ORM\OneToMany(
+ * @ORM\ManyToMany(
* targetEntity=Evaluation::class,
- * mappedBy="socialAction"
+ * mappedBy="socialActions"
* )
*/
private Collection $evaluations;
@@ -71,6 +71,11 @@ class SocialAction
*/
private $issue;
+ /**
+ * @ORM\Column(type="float", name="ordering", options={"default": 0.0})
+ */
+ private float $ordering = 0.0;
+
/**
* @ORM\ManyToOne(targetEntity=SocialAction::class, inversedBy="children")
*/
@@ -92,13 +97,14 @@ class SocialAction
$this->children = new ArrayCollection();
$this->goals = new ArrayCollection();
$this->results = new ArrayCollection();
+ $this->evaluations = new ArrayCollection();
}
public function addChild(self $child): self
{
if (!$this->children->contains($child)) {
$this->children[] = $child;
- $child->setParent($this);
+ $child->setParent($this)->setIssue($this->getIssue());
}
return $this;
@@ -199,6 +205,11 @@ class SocialAction
return $this->issue;
}
+ public function getOrdering(): float
+ {
+ return $this->ordering;
+ }
+
public function getParent(): ?self
{
return $this->parent;
@@ -266,9 +277,23 @@ class SocialAction
{
$this->issue = $issue;
+ foreach ($this->getChildren() as $child) {
+ $child->setIssue($issue);
+ }
+
return $this;
}
+ public function setOrdering(float $ordering): SocialAction
+ {
+ $this->ordering = $ordering;
+
+ return $this;
+ }
+
+ /**
+ * @internal use $parent->addChild() instead (@see{self::addChild()})
+ */
public function setParent(?self $parent): self
{
$this->parent = $parent;
diff --git a/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialIssue.php b/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialIssue.php
index 80b106b4e..c735c0132 100644
--- a/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialIssue.php
+++ b/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialIssue.php
@@ -44,6 +44,11 @@ class SocialIssue
*/
private $id;
+ /**
+ * @ORM\Column(type="float", name="ordering", options={"default": 0.0})
+ */
+ private float $ordering = 0.0;
+
/**
* @ORM\ManyToOne(targetEntity=SocialIssue::class, inversedBy="children")
*/
@@ -215,6 +220,11 @@ class SocialIssue
return $this->id;
}
+ public function getOrdering(): float
+ {
+ return $this->ordering;
+ }
+
public function getParent(): ?self
{
return $this->parent;
@@ -305,6 +315,16 @@ class SocialIssue
return $this;
}
+ public function setOrdering(float $ordering): SocialIssue
+ {
+ $this->ordering = $ordering;
+
+ return $this;
+ }
+
+ /**
+ * @internal use @see{SocialIssue::addChild()} instead
+ */
public function setParent(?self $parent): self
{
$this->parent = $parent;
diff --git a/src/Bundle/ChillPersonBundle/EventListener/PersonEventListener.php b/src/Bundle/ChillPersonBundle/EventListener/PersonEventListener.php
index d3b4beb47..993435ce5 100644
--- a/src/Bundle/ChillPersonBundle/EventListener/PersonEventListener.php
+++ b/src/Bundle/ChillPersonBundle/EventListener/PersonEventListener.php
@@ -13,6 +13,7 @@ namespace Chill\PersonBundle\EventListener;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Entity\PersonAltName;
+
use const MB_CASE_TITLE;
class PersonEventListener
diff --git a/src/Bundle/ChillPersonBundle/Export/AbstractAccompanyingPeriodExportElement.php b/src/Bundle/ChillPersonBundle/Export/AbstractAccompanyingPeriodExportElement.php
index b570c83de..264f47955 100644
--- a/src/Bundle/ChillPersonBundle/Export/AbstractAccompanyingPeriodExportElement.php
+++ b/src/Bundle/ChillPersonBundle/Export/AbstractAccompanyingPeriodExportElement.php
@@ -13,6 +13,7 @@ namespace Chill\PersonBundle\Export;
use Doctrine\ORM\QueryBuilder;
use LogicException;
+
use function in_array;
class AbstractAccompanyingPeriodExportElement
diff --git a/src/Bundle/ChillPersonBundle/Export/Export/CountPerson.php b/src/Bundle/ChillPersonBundle/Export/Export/CountPerson.php
index ffa69026a..27774c885 100644
--- a/src/Bundle/ChillPersonBundle/Export/Export/CountPerson.php
+++ b/src/Bundle/ChillPersonBundle/Export/Export/CountPerson.php
@@ -90,7 +90,9 @@ class CountPerson implements ExportInterface
*/
public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
{
- $centers = array_map(static function ($el) { return $el['center']; }, $acl);
+ $centers = array_map(static function ($el) {
+ return $el['center'];
+ }, $acl);
$qb = $this->entityManager->createQueryBuilder();
diff --git a/src/Bundle/ChillPersonBundle/Export/Export/ListPerson.php b/src/Bundle/ChillPersonBundle/Export/Export/ListPerson.php
index 6c02f4033..4528f1c92 100644
--- a/src/Bundle/ChillPersonBundle/Export/Export/ListPerson.php
+++ b/src/Bundle/ChillPersonBundle/Export/Export/ListPerson.php
@@ -32,6 +32,7 @@ use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Component\Validator\Constraints\Callback;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
+
use function addcslashes;
use function array_key_exists;
use function array_keys;
@@ -266,7 +267,9 @@ class ListPerson implements ExportElementValidatedInterface, ListInterface
public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
{
- $centers = array_map(static function ($el) { return $el['center']; }, $acl);
+ $centers = array_map(static function ($el) {
+ return $el['center'];
+ }, $acl);
// throw an error if any fields are present
if (!array_key_exists('fields', $data)) {
diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/GenderFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/GenderFilter.php
index c7587874b..a1adee826 100644
--- a/src/Bundle/ChillPersonBundle/Export/Filter/GenderFilter.php
+++ b/src/Bundle/ChillPersonBundle/Export/Filter/GenderFilter.php
@@ -20,6 +20,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
+
use function array_filter;
use function count;
use function implode;
diff --git a/src/Bundle/ChillPersonBundle/Form/AccompanyingCourseCommentType.php b/src/Bundle/ChillPersonBundle/Form/AccompanyingCourseCommentType.php
new file mode 100644
index 000000000..b123a4c4d
--- /dev/null
+++ b/src/Bundle/ChillPersonBundle/Form/AccompanyingCourseCommentType.php
@@ -0,0 +1,37 @@
+add('content', ChillTextareaType::class, []);
+ }
+
+ /**
+ * @return void
+ */
+ public function configureOptions(OptionsResolver $resolver)
+ {
+ $resolver->setDefault('class', Comment::class);
+ }
+}
diff --git a/src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php b/src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php
index 2924b7e35..7ff30524f 100644
--- a/src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php
+++ b/src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php
@@ -16,6 +16,7 @@ use Chill\PersonBundle\Repository\PersonRepository;
use RuntimeException;
use Symfony\Component\Form\ChoiceList\ChoiceListInterface;
use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface;
+
use function call_user_func;
use function count;
use function in_array;
@@ -76,8 +77,10 @@ class PersonChoiceLoader implements ChoiceLoaderInterface
$person = $this->personRepository->find($value);
- if ($this->hasCenterFilter()
- && !in_array($person->getCenter(), $this->centers, true)) {
+ if (
+ $this->hasCenterFilter()
+ && !in_array($person->getCenter(), $this->centers, true)
+ ) {
throw new RuntimeException('chosen a person not in correct center');
}
diff --git a/src/Bundle/ChillPersonBundle/Form/DataMapper/PersonAltNameDataMapper.php b/src/Bundle/ChillPersonBundle/Form/DataMapper/PersonAltNameDataMapper.php
index 13de3b9f5..d63c5f214 100644
--- a/src/Bundle/ChillPersonBundle/Form/DataMapper/PersonAltNameDataMapper.php
+++ b/src/Bundle/ChillPersonBundle/Form/DataMapper/PersonAltNameDataMapper.php
@@ -16,6 +16,7 @@ use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Symfony\Component\Form\DataMapperInterface;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
+
use function array_key_exists;
use function is_array;
diff --git a/src/Bundle/ChillPersonBundle/Form/PersonType.php b/src/Bundle/ChillPersonBundle/Form/PersonType.php
index 47baafe2b..bafe21277 100644
--- a/src/Bundle/ChillPersonBundle/Form/PersonType.php
+++ b/src/Bundle/ChillPersonBundle/Form/PersonType.php
@@ -21,6 +21,7 @@ use Chill\MainBundle\Form\Type\Select2CountryType;
use Chill\MainBundle\Form\Type\Select2LanguageType;
use Chill\MainBundle\Templating\TranslatableStringHelper;
use Chill\PersonBundle\Config\ConfigPersonAltNamesHelper;
+use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Entity\PersonPhone;
use Chill\PersonBundle\Form\Type\GenderType;
use Chill\PersonBundle\Form\Type\PersonAltNameType;
@@ -197,7 +198,8 @@ class PersonType extends AbstractType
},
'query_builder' => static function (EntityRepository $er): QueryBuilder {
return $er->createQueryBuilder('c')
- ->where('c.active = true');
+ ->where('c.active = true')
+ ->orderBy('c.order');
},
'placeholder' => 'choose civility',
'required' => false,
@@ -233,8 +235,7 @@ class PersonType extends AbstractType
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
- 'data_class' => 'Chill\PersonBundle\Entity\Person',
- 'validation_groups' => ['general', 'creation'],
+ 'data_class' => Person::class,
]);
$resolver->setRequired([
diff --git a/src/Bundle/ChillPersonBundle/Form/Type/GenderType.php b/src/Bundle/ChillPersonBundle/Form/Type/GenderType.php
index 43edfb8d0..90d548265 100644
--- a/src/Bundle/ChillPersonBundle/Form/Type/GenderType.php
+++ b/src/Bundle/ChillPersonBundle/Form/Type/GenderType.php
@@ -14,7 +14,6 @@ namespace Chill\PersonBundle\Form\Type;
use Chill\PersonBundle\Entity\Person;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
-
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
diff --git a/src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php b/src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php
index 98572b8bc..55d242f2d 100644
--- a/src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php
+++ b/src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php
@@ -28,6 +28,7 @@ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInt
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Translation\TranslatorInterface;
+
use function in_array;
use function is_array;
@@ -161,10 +162,14 @@ class PickPersonType extends AbstractType
. 'option must be an instance of ' . Center::class);
}
- if (!in_array($c->getId(), array_map(
- static function (Center $c) { return $c->getId(); },
- $centers
- ), true)) {
+ if (
+ !in_array($c->getId(), array_map(
+ static function (Center $c) {
+ return $c->getId();
+ },
+ $centers
+ ), true)
+ ) {
throw new AccessDeniedException('The given center is not reachable');
}
$selectedCenters[] = $c;
diff --git a/src/Bundle/ChillPersonBundle/Form/Type/Select2MaritalStatusType.php b/src/Bundle/ChillPersonBundle/Form/Type/Select2MaritalStatusType.php
index c75b93f7a..742efbc7d 100644
--- a/src/Bundle/ChillPersonBundle/Form/Type/Select2MaritalStatusType.php
+++ b/src/Bundle/ChillPersonBundle/Form/Type/Select2MaritalStatusType.php
@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
+
use const SORT_FLAG_CASE;
use const SORT_STRING;
diff --git a/src/Bundle/ChillPersonBundle/Household/MembersEditor.php b/src/Bundle/ChillPersonBundle/Household/MembersEditor.php
index 2d3749fa7..4d855a980 100644
--- a/src/Bundle/ChillPersonBundle/Household/MembersEditor.php
+++ b/src/Bundle/ChillPersonBundle/Household/MembersEditor.php
@@ -21,6 +21,7 @@ use LogicException;
use Symfony\Component\Validator\ConstraintViolationList;
use Symfony\Component\Validator\ConstraintViolationListInterface;
use Symfony\Component\Validator\Validator\ValidatorInterface;
+
use function in_array;
use function spl_object_hash;
diff --git a/src/Bundle/ChillPersonBundle/Menu/AccompanyingCourseMenuBuilder.php b/src/Bundle/ChillPersonBundle/Menu/AccompanyingCourseMenuBuilder.php
index fed840954..60455b201 100644
--- a/src/Bundle/ChillPersonBundle/Menu/AccompanyingCourseMenuBuilder.php
+++ b/src/Bundle/ChillPersonBundle/Menu/AccompanyingCourseMenuBuilder.php
@@ -73,6 +73,13 @@ class AccompanyingCourseMenuBuilder implements LocalMenuBuilderInterface
], ])
->setExtras(['order' => 40]);
+ $menu->addChild($this->translator->trans('Accompanying Course Comment'), [
+ 'route' => 'chill_person_accompanying_period_comment_list',
+ 'routeParameters' => [
+ 'accompanying_period_id' => $period->getId(),
+ ], ])
+ ->setExtras(['order' => 50]);
+
$workflow = $this->registry->get($period, 'accompanying_period_lifecycle');
if ($workflow->can($period, 'close')) {
diff --git a/src/Bundle/ChillPersonBundle/Menu/HouseholdMenuBuilder.php b/src/Bundle/ChillPersonBundle/Menu/HouseholdMenuBuilder.php
index feb465f8d..a144bf65b 100644
--- a/src/Bundle/ChillPersonBundle/Menu/HouseholdMenuBuilder.php
+++ b/src/Bundle/ChillPersonBundle/Menu/HouseholdMenuBuilder.php
@@ -57,7 +57,7 @@ class HouseholdMenuBuilder implements LocalMenuBuilderInterface
'routeParameters' => [
'household_id' => $household->getId(),
], ])
- ->setExtras(['order' => 40]);
+ ->setExtras(['order' => 15]);
}
public static function getMenuIds(): array
diff --git a/src/Bundle/ChillPersonBundle/Menu/PersonMenuBuilder.php b/src/Bundle/ChillPersonBundle/Menu/PersonMenuBuilder.php
index ee359434b..d83fa29dd 100644
--- a/src/Bundle/ChillPersonBundle/Menu/PersonMenuBuilder.php
+++ b/src/Bundle/ChillPersonBundle/Menu/PersonMenuBuilder.php
@@ -82,7 +82,8 @@ class PersonMenuBuilder implements LocalMenuBuilderInterface
'order' => 99999,
]);
- if ('visible' === $this->showAccompanyingPeriod
+ if (
+ 'visible' === $this->showAccompanyingPeriod
&& $this->security->isGranted(AccompanyingPeriodVoter::SEE, $parameters['person'])
) {
$menu->addChild($this->translator->trans('Accompanying period list'), [
diff --git a/src/Bundle/ChillPersonBundle/Privacy/PrivacyEvent.php b/src/Bundle/ChillPersonBundle/Privacy/PrivacyEvent.php
index 0bfd7a435..10e25c327 100644
--- a/src/Bundle/ChillPersonBundle/Privacy/PrivacyEvent.php
+++ b/src/Bundle/ChillPersonBundle/Privacy/PrivacyEvent.php
@@ -33,6 +33,7 @@ namespace Chill\PersonBundle\Privacy;
use Chill\PersonBundle\Entity\Person;
use Symfony\Component\EventDispatcher\Event;
+
use function count;
/**
diff --git a/src/Bundle/ChillPersonBundle/Privacy/PrivacyEventSubscriber.php b/src/Bundle/ChillPersonBundle/Privacy/PrivacyEventSubscriber.php
index 5018743dc..480ddcb24 100644
--- a/src/Bundle/ChillPersonBundle/Privacy/PrivacyEventSubscriber.php
+++ b/src/Bundle/ChillPersonBundle/Privacy/PrivacyEventSubscriber.php
@@ -35,6 +35,7 @@ use Chill\PersonBundle\Entity\Person;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
+
use function array_map;
class PrivacyEventSubscriber implements EventSubscriberInterface
@@ -75,7 +76,9 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
$involved = $this->getInvolved();
$involved['period_id'] = $event->getPeriod()->getId();
$involved['persons'] = $event->getPeriod()->getPersons()
- ->map(static function (Person $p) { return $p->getId(); })
+ ->map(static function (Person $p) {
+ return $p->getId();
+ })
->toArray();
$this->logger->notice(
@@ -99,7 +102,9 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
if ($event->hasPersons()) {
$involved['persons'] = array_map(
- static function (Person $p) { return $p->getId(); },
+ static function (Person $p) {
+ return $p->getId();
+ },
$event->getPersons()
);
}
diff --git a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php
index 965231e3f..6e6c3ca44 100644
--- a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php
+++ b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php
@@ -16,6 +16,7 @@ use Chill\MainBundle\Security\Resolver\CenterResolverDispatcherInterface;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Entity\Person;
use Symfony\Component\Security\Core\Security;
+
use function count;
final class AccompanyingPeriodACLAwareRepository implements AccompanyingPeriodACLAwareRepositoryInterface
diff --git a/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdRepository.php b/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdRepository.php
index 8becf4409..196bfc269 100644
--- a/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdRepository.php
+++ b/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdRepository.php
@@ -17,6 +17,7 @@ use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query\ResultSetMappingBuilder;
use Doctrine\Persistence\ObjectRepository;
+
use function strtr;
final class HouseholdRepository implements ObjectRepository
diff --git a/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php b/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php
index 972264282..78745af1d 100644
--- a/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php
+++ b/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php
@@ -23,6 +23,7 @@ use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\NonUniqueResultException;
use Doctrine\ORM\Query;
use Symfony\Component\Security\Core\Security;
+
use function array_fill;
use function array_map;
use function array_merge;
@@ -316,7 +317,9 @@ final class PersonACLAwareRepository implements PersonACLAwareRepositoryInterfac
),
]
),
- array_map(static function (Center $c) {return $c->getId(); }, $authorizedCenters)
+ array_map(static function (Center $c) {
+ return $c->getId();
+ }, $authorizedCenters)
);
}
}
diff --git a/src/Bundle/ChillPersonBundle/Repository/PersonRepository.php b/src/Bundle/ChillPersonBundle/Repository/PersonRepository.php
index 57cea2d55..bd8347852 100644
--- a/src/Bundle/ChillPersonBundle/Repository/PersonRepository.php
+++ b/src/Bundle/ChillPersonBundle/Repository/PersonRepository.php
@@ -17,6 +17,7 @@ use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Doctrine\Persistence\ObjectRepository;
use Exception;
+
use function count;
use function in_array;
use function str_replace;
diff --git a/src/Bundle/ChillPersonBundle/Repository/SocialWork/SocialIssueRepository.php b/src/Bundle/ChillPersonBundle/Repository/SocialWork/SocialIssueRepository.php
index 7c5983fd3..0900796d6 100644
--- a/src/Bundle/ChillPersonBundle/Repository/SocialWork/SocialIssueRepository.php
+++ b/src/Bundle/ChillPersonBundle/Repository/SocialWork/SocialIssueRepository.php
@@ -8,6 +8,7 @@
*/
declare(strict_types=1);
+
/*
* Chill is a software for social workers
*
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/accompanying_period_work.scss b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/accompanying_period_work.scss
index daaae9e28..ed474911f 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/accompanying_period_work.scss
+++ b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/accompanying_period_work.scss
@@ -1,57 +1,56 @@
/// AccompanyingCourse Work list Page
div.accompanying_course_work-list {
- div.objective_results {
+ table.obj-res-eval {
+ border-collapse: collapse;
+ border-radius: 5px;
width: 100%;
- display: grid;
- grid-template-areas: "obj res";
- grid-template-columns: 50%;
- column-gap: 0.2rem;
- padding: 0.3rem;
-
- div.objective {
- grid-area: obj;
+ &, tr, th, td {
+ border: 1px solid lightgray;
+ padding: 0.3em;
+ }
+ th {
h4.title_label {
- border-radius: 0.35rem 0 0 0.35rem;
+ font-weight: 700;
+ font-size: 100%;
+ font-family: 'Open Sans';
+ margin: 0;
}
}
- div.results {
- grid-area: res;
- h4.title_label {
- border-radius: 0 0.35rem 0.35rem 0;
- }
+ td {
+ font-size: 85%;
+ }
+ td.obj,
+ td.res {
+ width: 50%;
+ }
+ td.eval {
+ width: 100%;
}
- //&:nth-child(even) { background-color: $chill-llight-gray; }
- &.without-objectives {}
- &.with-objectives {}
}
- div.objective_results,
- div.evaluations {
- h4.title_label {
- display: block;
- margin: 0.4em 0;
- padding: 0.1em 0.5em;
- font-variant-caps: small-caps;
- font-size: 95%;
- background-color: tint-color($chill-orange, 80%);
- + * {
- margin-top: 0;
- }
+ ul {
+ &.goal_title,
+ &.result_list,
+ &.eval_title {
+ padding-left: 1em;
+ margin-bottom: 0;
}
- ul {
- &.goal_title,
- &.result_list {
- padding-left: 1em;
- margin-bottom: 0;
- }
- &.goal_title {
- @include list_marker_triangle($social-issue-color);
- }
- &.result_list {
- @include list_marker_triangle($pink);
- }
+ &.goal_title {
+ @include list_marker_triangle($social-issue-color);
+ }
+ &.result_list {
+ @include list_marker_triangle($pink);
+ }
+ &.eval_title {
+ @include list_marker_triangle($orange);
}
}
}
+
+div.flex-table div.item-bloc:nth-child(2n) table.obj-res-eval {
+ &, tr, th, td {
+ background-color: $chill-llight-gray;
+ }
+}
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss
index 0330900da..b0147ebdf 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss
+++ b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss
@@ -120,10 +120,8 @@ ul.columns { // XS:1 SM:2 MD:1 LG:2 XL:2 XXL:2
}
}
-
-
/// dashboard_like_badge in AccompanyingCourse Work list Page
-div.accompanying_course_work-list {
+div[class*='accompanying_course_work'] {
div.dashboard,
h2.badge-title {
span.title_label {
@@ -133,6 +131,7 @@ div.accompanying_course_work-list {
span.title_action {
@include dashboard_like_badge($social-action-color);
}
+
}
}
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Comment.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Comment.vue
index 7f5b04f99..5df43cdac 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Comment.vue
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Comment.vue
@@ -20,10 +20,10 @@
tag-name="textarea">
-