public function register(Application $app) { $app['stack'] = $app->share(function ($app) { $stack = new Stack($app['filesystem.matcher'], $app['users'], $app['session'], $app['config']->get('general/accept_file_types')); return $stack; }); }