deletePreference() публичный Метод

Removes a specific system preference
public deletePreference ( string $key )
$key string The key to delete
 /**
  * Retrieves a collection of resources.
  *
  * @param Request $request
  *
  * @throws \Exception                                 If the format is invalid
  * @throws RuntimeException|RootNodeNotFoundException
  *
  * @return array|\Dunglas\ApiBundle\Model\PaginatorInterface|\Traversable
  */
 public function __invoke(Request $request)
 {
     if ($request->request->has('preferenceKey')) {
         $this->systemPreferenceService->deletePreference($request->request->get('preferenceKey'));
     } else {
         throw new \Exception('Invalid format');
     }
 }