As Oak develops, so does it's types, so to use any particular version of Oak to determine whether an object is an instance of it's Application will inevitably fail as what an Application is will change (esp. with strong typing).
This patch introduces some duck typing to determine if the passed app has the minimal desired shape of an Oak Application instance.
This should be fortified in future as the duck-typing is somewhat fragile and still susceptible to major changes in the Oak framework.
CheckList
[x] PR starts with [_ISSUEID] and branch name is e.g. feature/description (see branching strategy in CONTRIBUTING).
[ ] Squashed commit message is prefixed with [_ISSUEID] as above.
[x] Has been tested (where required) before merge to develop.
Issue
ISSUE-1
Details
Decouples SuperOak from Oak v5.0.0.
As Oak develops, so does it's types, so to use any particular version of Oak to determine whether an object is an instance of it's
Application
will inevitably fail as what anApplication
is will change (esp. with strong typing).This patch introduces some duck typing to determine if the passed
app
has the minimal desired shape of an OakApplication
instance.This should be fortified in future as the duck-typing is somewhat fragile and still susceptible to major changes in the Oak framework.
CheckList