Commit 27207582 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Retrait de dépendances inutilisées

parent 13b99e32
Pipeline #11399 passed with stage
in 20 seconds
......@@ -38,6 +38,6 @@ create table unicaen_renderer_rendu
sujet text not null,
corps text not null
);
create unique index unicaen_document_rendu_id_uindex on unicaen_renderer_rendu (id);
create unique index unicaen_document_rendu_id_uindex on unicaen_renderer_template (id);
......@@ -158,3 +158,11 @@ const DOCUMENTCONTENU_SUPPRIMER = 'documentcontenu-documentcontenu_supprimer
```
***Attention !!!*** Penser à donner les privilèges aux rôles adéquats.
Dépendance à **UnicaenPrivilege**
----------------------------------
1. Dans **vendor/unicaen/renderer/config/merged/index.config.php**, **vendor/unicaen/renderer/config/merged/macro.config.php**, **vendor/unicaen/renderer/config/merged/rendu.config.php**, **vendor/unicaen/renderer/config/merged/template.config.php** : `UnicaenPrivilege\Guard\PrivilegeController` pour les gardes liées aux actions.
Peut être directement remplacer par l'equivalent fournit par `unicaen/auth`.
1. Dans **vendor/unicaen/renderer/src/UnicaenRenderer/Provider/Privilege/DocumentcontenuPrivileges.php**, **vendor/unicaen/renderer/src/UnicaenRenderer/Provider/Privilege/DocumentmacroPrivileges.php**, **vendor/unicaen/renderer/src/UnicaenRenderer/Provider/Privilege/DocumenttemplatePrivileges.php** : `UnicaenPrivilege\Provider\Privilege\Privileges` classe mère des privilèges du module.
Peut être directement remplacer par l'equivalent fournit par `unicaen/auth`.
\ No newline at end of file
......@@ -8,12 +8,10 @@ use Doctrine\ORM\QueryBuilder;
use UnicaenApp\Exception\RuntimeException;
use UnicaenApp\Service\EntityManagerAwareTrait;
use UnicaenRenderer\Entity\Db\Macro;
use UnicaenUtilisateur\Service\User\UserServiceAwareTrait;
use Zend\Mvc\Controller\AbstractActionController;
class MacroService {
use EntityManagerAwareTrait;
use UserServiceAwareTrait;
/** GESTION DES ENTITES *******************************************************************************************/
......
......@@ -4,7 +4,6 @@ namespace UnicaenRenderer\Service\Macro;
use Doctrine\ORM\EntityManager;
use Interop\Container\ContainerInterface;
use UnicaenUtilisateur\Service\User\UserService;
class MacroServiceFactory {
......@@ -22,9 +21,6 @@ class MacroServiceFactory {
$service = new MacroService();
$service->setEntityManager($entityManager);
/** @var UserService $userService */
$userService = $container->get(UserService::class);
$service->setUserService($userService);
return $service;
}
}
\ No newline at end of file
......@@ -9,13 +9,12 @@ use UnicaenApp\Exception\RuntimeException;
use UnicaenApp\Service\EntityManagerAwareTrait;
use UnicaenRenderer\Entity\Db\Template;
use UnicaenRenderer\Service\Macro\MacroServiceAwareTrait;
use UnicaenUtilisateur\Service\User\UserServiceAwareTrait;
use Zend\Mvc\Controller\AbstractActionController;
class TemplateService {
use EntityManagerAwareTrait;
use MacroServiceAwareTrait;
use UserServiceAwareTrait;
/** GESTION DES ENTITES *******************************************************************************************/
......
......@@ -5,7 +5,6 @@ namespace UnicaenRenderer\Service\Template;
use Doctrine\ORM\EntityManager;
use Interop\Container\ContainerInterface;
use UnicaenRenderer\Service\Macro\MacroService;
use UnicaenUtilisateur\Service\User\UserService;
class TemplateServiceFactory {
......@@ -26,10 +25,6 @@ class TemplateServiceFactory {
$service->setEntityManager($entityManager);
$service->setMacroService($macroService);
/** @var UserService $userService */
$userService = $container->get(UserService::class);
$service->setUserService($userService);
return $service;
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment