Back to WritableLoaderInterface class

Method add

public void
add
(string $commandName, string $className)
Adds a command to the loader.
Parameters
  • string $commandName The name of the command to load.
  • string $className The fully qualified class name of the command.
Returns
  • void
Since
  • 4.0.0

Method add - Source code

/**
 * Adds a command to the loader.
 *
 * @param   string  $commandName  The name of the command to load.
 * @param   string  $className    The fully qualified class name of the command.
 *
 * @return  void
 *
 * @since   4.0.0
 */
public function add(string $commandName, string $className);