share(function (PhraseaApplication $app) { return (new UserPreferenceController($app)); }); } public function boot(Application $app) { // no-op } /** * {@inheritDoc} */ public function connect(Application $app) { $controllers = $this->createAuthenticatedCollection($app); /* @uses UserPreferenceController::saveUserPref */ $controllers->post('/', 'controller.user.preferences:saveUserPref') ->bind('save_pref'); /* @uses UserPreferenceController::saveTemporaryPref */ $controllers->post('/temporary/', 'controller.user.preferences:saveTemporaryPref') ->bind('save_temp_pref'); return $controllers; } }