Skip to content
Snippets Groups Projects
Commit 9c6c02f6 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Possibilité de lancer une action UnicaenCode directement depuis le code source...

Possibilité de lancer une action UnicaenCode directement depuis le code source sans être dans une view. Exemple : Util::codeGenerator()->generer('privileges');
parent ef7a2e09
No related branches found
No related tags found
No related merge requests found
Pipeline #37929 passed
CHANGELOG
=========
6.5.0 (13/05/2025)
------------------
* Possibilité de lancer une action UnicaenCode directement depuis le code source sans être dans une view. Exemple : Util::codeGenerator()->generer('privileges');
6.4.0 (02/04/2025)
------------------
......
......@@ -25,7 +25,7 @@ return [
'controllers' => [
'factories' => [
'UnicaenCode\Controller' => Controller\Factory\ControllerFactory::class,
Controller\Controller::class => Controller\Factory\ControllerFactory::class,
],
],
......@@ -61,7 +61,7 @@ return [
'options' => [
'route' => '/unicaen-code[/:view]',
'defaults' => [
'controller' => 'UnicaenCode\Controller',
'controller' => Controller\Controller::class,
'action' => 'index',
],
],
......@@ -93,7 +93,7 @@ return [
'bjyauthorize' => [
'guards' => [
'BjyAuthorize\Guard\Controller' => [
['controller' => 'UnicaenCode\Controller', 'roles' => []],
['controller' => Controller\Controller::class, 'roles' => []],
],
],
],
......
......@@ -3,6 +3,7 @@
namespace UnicaenCode\Service;
use Exception;
use UnicaenCode\Controller\Controller;
use UnicaenCode\Form\FormMaker;
use UnicaenCode\Service\Traits\ConfigServiceAwareTrait;
use UnicaenCode\Util;
......@@ -44,6 +45,7 @@ class CodeGeneratorService
$state = self::STATE_CODE;
} else {
$input = [];
$state = self::STATE_CODE;
}
......
......@@ -28,9 +28,9 @@ class Util
private static ContainerInterface $container;
public static string $currentView;
public static ?string $currentView = null;
public static array $inputParams;
public static array $inputParams = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment