Upgrading Guide
The following guide will help you upgrade from your existing projects from version to version.
From 1.0 to 2.0
Before EventHandler->getMeta()
returned true|false
. This has been changed
to meta will now return either of the following:
- 200 - Means all events were triggered
- 308 - Means one event returned false thus making this incomplete
- 404 - Means no events were triggered
All references of ->triggerRoute(...)
have changed to ->routeTo(...)
All references of cradle()
in routes and events have changed to $this
- For example: Instead of
cradle()->trigger(...)
, use$this->trigger(...)
- You should still use
cradle()
inside of class methods
All references of $cradle
in packages have changed to $this
- For example: Instead of
$cradle->preprocess(...)
, use$this->preprocess(...)
Moved from Bower to Yarn
- Instead of using
bower install
, useyarn build
Moved from Bootstrap 3 to Bootstrap 4
- Some of your templates will most likely break. See the Bootstrap Migration Guide for more information
Moved from FontAwesome 3 to FontAwesome 5
- Some of your icons will most likely break. See the FontAwesome Migration Guide for more information
Module\Profile
has moved to cradlephp/cradle-profile
- If you made changes to
Module\Profile
do not usecradlephp/cradle-profile
- Integration Steps:
- Copy the
/package/
folder fromcradlephp/cradle-profile
toModule/Profile
- Update
package/schema/profile.php
- Copy your new
package/schema/profile.php
to/config/schema/profile.php
- Copy the
Module\Auth
has moved to cradlephp/cradle-auth
- If you made changes to
Module\Auth
do not usecradlephp/cradle-auth
- Integration Steps:
- Copy the
/package/
folder fromcradlephp/cradle-auth
toModule/Auth
- Update
package/schema/auth.php
- Copy your new
package/schema/auth.php
to/config/schema/auth.php
- Copy the