GX-Bug #68712
Von Tobias Schindler vor mehr als 3 Jahren aktualisiert
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: 1. Create file: `GXModules/Test/Test/TestServiceProvider.php` 2. Copy content: ```php <?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'); } } ``` 3. Go to clear cache page 4. Delete modules cache Expect "TestServiceProvider::provides" from the first methods die statement as output after clearing the cache