public function invoke(\Slender\App &$app) { $this->app = $app; // Get route to use $pattern = $app['settings']['asset-exposer']['route']; // Register a new route to handle modules $app->get($pattern, [$this, 'handleAssetRequest']); }