src/Modules.php
public function set($name, AbstractModule $module)
    {
        $this->container[(string) $name] = $module;

        return $this;
    }
public function set($name, AbstractModule $module)
    {
        $this->container[(string) $name] = $module;

        return $this;
    }
Sets the module.

@param string         $name   The module name
@param AbstractModule $module The instance of module class

@return self