Libraries in Wayfinder

Extend Wayfinder by bringing your own libraries

If you already have some code wrapped as a Class, you can include it as a library in Wayfinder. Just drop it into the app/libraries folder. The Db library is shipped by default and is a good example of how this functionality works..

class Shop extends Wayfinder {

    public function __construct() {
        $this->load('libraries', 'mylib');
        $this->myLib = new myLib();
    }

}