35         $this->addOption(
"legacy-plugin", null, InputOption::VALUE_REQUIRED, 
"Name of the plugin to run the command for.");
    36         $this->addOption(
"no-legacy-plugins", null, InputOption::VALUE_NONE, 
"Ignore all plugins when running the command.");
    37         $this->addOption(
"skip-legacy-plugin", null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 
"Skip plugin with the supplied <plugin-name> when running the command.");
    42         if (!$this->agent_finder) {
    43             throw new \LogicException(
    44                 "\$this->agent_finder needs to intialized with an AgentFinder."    48         if ($input->hasOption(
"no-legacy-plugins") && $input->getOption(
"no-legacy-plugins")) {
    50             return $this->agent_finder->getComponentAgents();
    53         if ($input->hasOption(
"legacy-plugin")) {
    54             $plugin_name = $input->getOption(
"legacy-plugin");
    56                 return $this->agent_finder->getPluginAgent($plugin_name);
    60         $agents = $this->agent_finder->getAgents();
    61         if ($input->hasOption(
"skip-legacy-plugin")) {
    62             foreach (($input->getOption(
"skip-legacy-plugin") ?? []) as $plugin_name) {
    63                 $agents = $agents->withRemovedAgent($plugin_name);
 
getRelevantAgent(InputInterface $input)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
configureCommandForPlugins()
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...