@@ -5,10 +5,7 @@ |
||
| 5 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | 6 | use Symfony\Component\HttpFoundation\Request; |
| 7 | 7 | use Symfony\Component\HttpFoundation\Response; |
| 8 | -use FOS\RestBundle\Controller\FOSRestController, |
|
| 9 | - FOS\RestBundle\Controller\Annotations\View, |
|
| 10 | - FOS\RestBundle\Controller\Annotations\QueryParam, |
|
| 11 | - FOS\RestBundle\Request\ParamFetcher; |
|
| 8 | +use FOS\RestBundle\Controller\Annotations\View; |
|
| 12 | 9 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
| 13 | 10 | use Application\Sonata\MediaBundle\Model\UploadFileResponse; |
| 14 | 11 | |
@@ -31,7 +31,6 @@ |
||
| 31 | 31 | use Symfony\Component\Form\Form; |
| 32 | 32 | use Symfony\Component\HttpFoundation\Request; |
| 33 | 33 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; |
| 34 | -use Symfony\Component\Validator\Constraints\DateTime; |
|
| 35 | 34 | |
| 36 | 35 | class DreamController extends Controller |
| 37 | 36 | { |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use Application\Sonata\MediaBundle\Entity\Media; |
| 16 | 16 | use Symfony\Component\HttpFoundation\File\File; |
| 17 | 17 | use Symfony\Component\Filesystem\Filesystem; |
| 18 | -use Symfony\Component\Filesystem\Exception\IOExceptionInterface; |
|
| 19 | 18 | |
| 20 | 19 | class DreamFilesTransformer implements DataTransformerInterface |
| 21 | 20 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Application\Sonata\MediaBundle\Entity\Media; |
| 15 | 15 | use Symfony\Component\HttpFoundation\File\File; |
| 16 | 16 | use Symfony\Component\Filesystem\Filesystem; |
| 17 | -use Symfony\Component\Filesystem\Exception\IOExceptionInterface; |
|
| 18 | 17 | |
| 19 | 18 | class DreamPicturesTransformer implements DataTransformerInterface |
| 20 | 19 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Application\Sonata\MediaBundle\Entity\Media; |
| 6 | 6 | use Symfony\Component\Form\DataTransformerInterface; |
| 7 | -use Symfony\Component\HttpFoundation\File\File; |
|
| 8 | 7 | use Sonata\MediaBundle\Entity\MediaManager; |
| 9 | 8 | use Geekhub\UserBundle\Entity\User; |
| 10 | 9 | |
@@ -6,9 +6,8 @@ |
||
| 6 | 6 | use Guzzle\Http\Exception\RequestException; |
| 7 | 7 | use HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface; |
| 8 | 8 | use JMS\Serializer\Serializer; |
| 9 | -use Symfony\Component\Config\Definition\Exception\Exception; |
|
| 10 | -use Symfony\Component\DependencyInjection\Container, |
|
| 11 | - Symfony\Component\Filesystem\Filesystem; |
|
| 9 | +use Symfony\Component\DependencyInjection\Container; |
|
| 10 | +use Symfony\Component\Filesystem\Filesystem; |
|
| 12 | 11 | use Application\Sonata\MediaBundle\Entity\Media; |
| 13 | 12 | use Geekhub\UserBundle\Entity\User; |
| 14 | 13 | use Symfony\Component\Filesystem\Exception\IOExceptionInterface; |
@@ -2,20 +2,18 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Geekhub\UserBundle\UserProvider; |
| 4 | 4 | |
| 5 | -use HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface, |
|
| 6 | - HWI\Bundle\OAuthBundle\Security\Core\User\OAuthAwareUserProviderInterface, |
|
| 7 | - HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider as BaseClass; |
|
| 5 | +use HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface; |
|
| 6 | +use HWI\Bundle\OAuthBundle\Security\Core\User\OAuthAwareUserProviderInterface; |
|
| 7 | +use HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider as BaseClass; |
|
| 8 | 8 | use Symfony\Component\HttpFoundation\Session\Session; |
| 9 | 9 | use Symfony\Component\Security\Core\Exception\LockedException; |
| 10 | -use Symfony\Component\Security\Core\User\UserInterface, |
|
| 11 | - Symfony\Component\Security\Core\User\UserProviderInterface, |
|
| 12 | - Symfony\Component\PropertyAccess\PropertyAccessor; |
|
| 13 | -use Doctrine\DBAL\Types, |
|
| 14 | - Doctrine\DBAL\DBALException; |
|
| 15 | -use Geekhub\UserBundle\UserProvider\FacebookProvider, |
|
| 16 | - Geekhub\UserBundle\UserProvider\VkontakteProvider, |
|
| 17 | - Geekhub\UserBundle\UserProvider\OdnoklassnikiProvider, |
|
| 18 | - Geekhub\UserBundle\Entity\User; |
|
| 10 | +use Symfony\Component\Security\Core\User\UserInterface; |
|
| 11 | +use Symfony\Component\Security\Core\User\UserProviderInterface; |
|
| 12 | +use Symfony\Component\PropertyAccess\PropertyAccessor; |
|
| 13 | +use Geekhub\UserBundle\UserProvider\FacebookProvider; |
|
| 14 | +use Geekhub\UserBundle\UserProvider\VkontakteProvider; |
|
| 15 | +use Geekhub\UserBundle\UserProvider\OdnoklassnikiProvider; |
|
| 16 | +use Geekhub\UserBundle\Entity\User; |
|
| 19 | 17 | |
| 20 | 18 | class DreamUserProvider extends BaseClass implements UserProviderInterface, OAuthAwareUserProviderInterface |
| 21 | 19 | { |