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
Loading
Loading
Loading
Loading
Loading
+6 −0
Changes for CHANGELOG.md: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
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)
------------------

+3 −3
Changes for config/module.config.php: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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' => []],
            ],
        ],
    ],
+2 −0
Changes for src/Service/CodeGeneratorService.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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;
        }


+2 −2
Changes for src/Util.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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 = [];