You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the workshop in Madrid, @sgomez@jaimeperez, @tvdijen and I discussed switching the module system to a Symfony based system, for release with the coming 2.0. This would be a breaking change (modules would have to be migrated in order to work again).
Current notes/to dos:
Each module would be like a Symfony Bundle, and follow that directory structure.
Kernel.php needs to be updated, this will at minimum involve changes to the constructor and registerBundles.
In Symfony, when a bundle has routes, a file should be added to config/routes directory importing this routes. So, when we create a module with routes we have two ways to import routes
Finally, I can load routes from Kernel and skip the creation of a custom router. Anyway there a lot issues to resolve:
There a lot of classes that depends of Modules static methods. And this search the modules in module.enable configuration (to check if it is enabled) and files inside modules directory. So, change this will require a lot of time.
Another issue is Dependency Injection is not working (autowiring at least). I can not trace the error. Probably something in the configuration is missing.
Right now, I can have controllers but Template class can not found twig templates. Without DI I cannot create a template service either.
Resolve this from a small modules instead from main modules is hard, because we need admin and other modules working and this will require a lot of extra logic in Module class.
I will try to use a new.php access point to load new modules in a different way that module.php does.
During the workshop in Madrid, @sgomez @jaimeperez, @tvdijen and I discussed switching the module system to a Symfony based system, for release with the coming 2.0. This would be a breaking change (modules would have to be migrated in order to work again).
Current notes/to dos:
registerBundles
.Current proposed approach: start by restructuring a small plugin (possibly Expiry Check), and then modify simpleSAMLphp to make this work.
The text was updated successfully, but these errors were encountered: