mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2060 [WIP] Initialisation of the portal application: Code cleanup
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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%'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user