diff --git a/main/install/install.lib.php b/main/install/install.lib.php index b1fe782b90..d53faf47a5 100755 --- a/main/install/install.lib.php +++ b/main/install/install.lib.php @@ -4,6 +4,7 @@ use Chamilo\CoreBundle\Entity\AccessUrl; use Chamilo\CoreBundle\Entity\ExtraField; use Chamilo\CoreBundle\Framework\Container; +use Chamilo\CoreBundle\ToolChain; use Chamilo\TicketBundle\Entity\Category as TicketCategory; use Chamilo\TicketBundle\Entity\Priority as TicketPriority; use Chamilo\TicketBundle\Entity\Project as TicketProject; @@ -3026,7 +3027,7 @@ function installSchemas($container, $manager, $upgrade = false) $settingsManager = Container::getSettingsManager(); // Install course tools (table "tool") - $toolChain = $container->get('chamilo_core.tool_chain'); + $toolChain = $container->get(ToolChain::class); $toolChain->createTools($manager); $urlRepo = $container->get('Chamilo\CoreBundle\Repository\AccessUrlRepository'); diff --git a/src/CoreBundle/DependencyInjection/Compiler/ToolCompilerClass.php b/src/CoreBundle/DependencyInjection/Compiler/ToolCompilerClass.php index 8ff234448b..7144a64ccf 100644 --- a/src/CoreBundle/DependencyInjection/Compiler/ToolCompilerClass.php +++ b/src/CoreBundle/DependencyInjection/Compiler/ToolCompilerClass.php @@ -12,6 +12,9 @@ use Symfony\Component\DependencyInjection\Reference; * Class ToolCompilerClass. * Search the services with tag "chamilo_core.tool" in order to be added * as a tool (Documents, Notebook, etc). + * + * See: + * https://symfony.com/doc/current/service_container/tags.html */ class ToolCompilerClass implements CompilerPassInterface {