->app() method. It will return the currently running application object thus giving you access to all the methods of the Bricklayer Application API. Simply call an API method on the returned Application Object. Like so: $self->app()->env() to get the bricklayer environment for instance.