public function addModule(Module $module)
    {
        if ($this->db !== $module->getDB())
            throw new MigrationException("The DB instances should be the same");

        $name = self::normalizeModule($module->getModule());
        $this->modules[$name] = $module;
        return $this;
    }
public function addModule(Module $module)
    {
        if ($this->db !== $module->getDB())
            throw new MigrationException("The DB instances should be the same");

        $name = self::normalizeModule($module->getModule());
        $this->modules[$name] = $module;
        return $this;
    }
public function addModule ( Module $ module ) { if ( $ this -> db !== $ module -> getDB ( ) ) throw new MigrationException ( "The DB instances should be the same" ) ; $ name = self :: normalizeModule ( $ module -> getModule ( ) ) ; $ this -> modules [ $ name ] = $ module ; return $ this ; }
Register a module that has already been instantiated
@param $module The module to register
@return Repository Provide fluent interface
Register a module that has already been instantiated