N°2060 [WIP] Initialisation of the portal application: Code cleanup

This commit is contained in:
Molkobain
2019-06-28 17:23:07 +02:00
parent ae8451e837
commit 0d3e48475e
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,6 @@ use Combodo\iTop\Portal\DependencyInjection\SilexCompatBootstrap\PortalXmlConfig
// Note: ModuleDesign service is not available yet as this script is processed before service generation,
// that's why we have to instantiate it manually.
require_once APPROOT . 'core/moduledesign.class.inc.php';
$moduleDesign = new \ModuleDesign(PORTAL_ID);
// TODO: The following code needs to be refactored to more independent and atomic services.

View File

@@ -88,7 +88,8 @@ services:
# Legacy code as a service: since it is not in the auto-wiring path, it needs to be explicitly declared
ModuleDesign:
class: 'ModuleDesign'
public: true
class: ModuleDesign
arguments:
- '%combodo.portal.instance.id%'