README.Mahara 1.49 KB
Newer Older
Jordi Boggiano's avatar
Jordi Boggiano committed
1
2
3
4
Dwoo in Mahara
======================

Website: http://www.dwoo.org/
5
Version: 1.3.7
Jordi Boggiano's avatar
Jordi Boggiano committed
6
7
8
9
10

This library is used for all the templating.

Changes:

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Move lib/Dwoo from the downloaded plugin to htdocs/lib/dwoo/Dwoo
replace the CHANGELOG, README and LICENSE.md files with the new ones.
We don't need .gitlab-ci.yml or travis.yml.

You can delete the rest of the plugin (/tests, lib/cache/, lib/compiled).

Copy the mahara directory from the previous version to htdocs/lib/dwoo/mahara.


We pushed the composer autoloaded files in the /vendor directory and git ignored the
composer.json. This was as a workaround to stop the Makefile needing to do the composer
autoload, which it failed to do on Jenkins and wasn't easy to resolve.
So to upgrade dwoo, you'll either need to resolve the composer issue or do what
we did:
add this to the composer.json:
    "autoload": {
        "psr-4": {
            "Mahara\\": "dwoo/mahara/"
        }
    }
We don't need to autoload the tests file (we deleted it) or to require phpunit or PHP,
so you can remove those bits from the composer.json.

To recompile the classpaths:
cd htdocs/lib/dwoo
composer dump-autoload -o

Then remove the hashes from the auto-generated /vendor files: E.g.
ComposerAutoloaderInit26e38f1cfb40040c9ff6097c09aee6d7::getLoader();
becomes ComposerAutoloaderInit::getLoader();
41
42
43
44
45
46

Additional changes:

The Dwoo plugin is being unmaintained again so we need also make any
changes committed to their master branch
https://github.com/dwoo-project/dwoo/compare/1.3.7...master