@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use ONGR\SettingsBundle\Settings\General\SettingsManager; |
| 15 | 15 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 16 | -use Symfony\Component\HttpFoundation\JsonResponse; |
|
| 17 | 16 | use Symfony\Component\HttpFoundation\RedirectResponse; |
| 18 | 17 | use Symfony\Component\HttpFoundation\Request; |
| 19 | 18 | use Symfony\Component\HttpFoundation\Response; |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use ONGR\SettingsBundle\DependencyInjection\Compiler\SettingAwareFactoryPass; |
| 18 | 18 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 19 | 19 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
| 20 | -use ONGR\SettingsBundle\DependencyInjection\Security\SessionlessAuthenticationFactory; |
|
| 21 | 20 | |
| 22 | 21 | /** |
| 23 | 22 | * This class is used to register component into Symfony app kernel. |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | } |
| 64 | 64 | try { |
| 65 | 65 | $profileManager->createProfile($data['name'], $data['description']); |
| 66 | - }catch (\Exception $e) { |
|
| 66 | + } catch (\Exception $e) { |
|
| 67 | 67 | $cache->save('settings_errors', $e->getMessage()); |
| 68 | 68 | return new RedirectResponse($this->generateUrl('ongr_settings_profile_add')); |
| 69 | 69 | } |