Skip to content

2. Building

Yunus Emre Bulut edited this page Jan 15, 2022 · 4 revisions

This command generates whoo-config.php file in root of your project

./vendor/bin/whoo init

After this command, edit the whoo-config.php file to set database config This command generates propel files as database config from whoo-config.php

./vendor/bin/whoo propel:create

You make sure that propel model classes added in composer.json and than update the autoload file

"autoload": {
    ...
    "classmap": [
        ...
        "whoo/propel/model"
    ]
}
composer dump-autoload

If you need to update database config, edit the whoo-config.php file and run this command

./vendor/bin/whoo propel:update

If all steps ran correctly you can start to use Whoo

Clone this wiki locally