Helper

You may have noticed the Helper class being used on Enqueue and Panels to include assets from your plugin. At first this may see a little weird compared to older versions of Herbert where you could do both:

Now that Herbert\Framework is only loaded once even if there are multiple plugins built on Herbert active, we've had to move path and url logic to each plugin. This is where the Helper class comes in. The following is an example (seen in routes.php) use of Helper while in the root namespace of an app:

Helper::method()

If you're not in the root namespace (for example, inside a controller), you need to add the following before calling Helper::method():