Project

General

Profile

GX-Bug #68712

The GXModules ServiceProvider registration cache is not cleared correctly

Added by Tobias Schindler about 1 year ago. Updated 10 months ago.

Status:
Erledigt
Priority:
Dringend
Assignee:
Category:
GXModules
Target version:
% Done:

0%

Estimated time:
Steps to reproduce:
Betroffene Versionen:
4.4.0.2
Release Notes Langtext:

Es ist ein Fehler im Modulcache behoben worden


Description

After executing the "Empty modules cache" action, the GXModules ServiceProvider registration cache still exists. Therefore, new Modules can only be registered after manually deleting the cache file.

To test this issue, create a new service provider for a module and verify that the service provider code is executed:

  • Create file: GXModules/Test/Test/TestServiceProvider.php
  • Copy content:
<?php

declare(strict_types=1);

namespace GXModules\Test\Test;

use Gambio\Core\Application\DependencyInjection\AbstractModuleServiceProvider;

class TestServiceProvider extends AbstractModuleServiceProvider
{
    public function provides(): array
    {
        // if registered correctly, expect that one of the 'die' functions are executed
        die('TestServiceProvider::provides');
        return [];
    }


    public function register(): void
    {
        // if registered correctly, expect that one of the 'die' functions are executed
        die('TestServiceProvider::register');
    }
}
  • Go to clear cache page
  • Delete modules cache

Expect "TestServiceProvider::provides" from the first methods die statement as output after clearing the cache

History

#1

Updated by Tobias Schindler about 1 year ago

  • Description updated (diff)
#2

Updated by Tobias Schindler about 1 year ago

  • Description updated (diff)
#3

Updated by Tobias Schindler about 1 year ago

  • Description updated (diff)
#4

Updated by Tobias Schindler about 1 year ago

  • Description updated (diff)
#5

Updated by Tobias Schindler about 1 year ago

  • Status changed from In Bearbeitung to Testing
  • Assignee changed from Tobias Schindler to Core-Entwickler
  • Target version changed from 133 to 4.5.1.0 beta1
  • Release Notes Langtext updated (diff)
#6

Updated by Alexandre Ataides about 1 year ago

  • Assignee changed from Core-Entwickler to Alexandre Ataides
#7

Updated by Alexandre Ataides about 1 year ago

  • Assignee changed from Alexandre Ataides to Core-Entwickler
#8

Updated by Ahmed Hamouda about 1 year ago

  • Assignee changed from Core-Entwickler to Ahmed Hamouda
#9

Updated by Ahmed Hamouda about 1 year ago

  • Status changed from Testing to Erledigt
#10

Updated by Moritz Bunjes about 1 year ago

  • Tags set to 4.5.1.0_beta1
#11

Updated by Moritz Bunjes 10 months ago

  • Tags deleted (4.5.1.0_beta1)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 5 MB)