Issue #2206991 by jhodgdon: Support Traits in API module. Requires PHP 5.4 or greater.