@@ -16,7 +16,6 @@ |
||
16 | 16 | |
17 | 17 | namespace SWP\Bundle\CoreBundle\Consumer; |
18 | 18 | |
19 | -use Doctrine\DBAL\DBALException; |
|
20 | 19 | use Doctrine\ORM\EntityManagerInterface; |
21 | 20 | use Doctrine\ORM\ORMException; |
22 | 21 | use Exception; |
@@ -198,6 +198,9 @@ |
||
198 | 198 | ]); |
199 | 199 | } |
200 | 200 | |
201 | + /** |
|
202 | + * @param null|string $token |
|
203 | + */ |
|
201 | 204 | private function generateOrGetApiKey(UserInterface $user, $token) |
202 | 205 | { |
203 | 206 | $apiKey = null; |
@@ -93,6 +93,9 @@ |
||
93 | 93 | return new SingleResourceResponse($list); |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $id |
|
98 | + */ |
|
96 | 99 | private function findArticleOr404($id) |
97 | 100 | { |
98 | 101 | if (null === $article = $this->get('swp.repository.article')->findOneById($id)) { |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use Nelmio\ApiDocBundle\Annotation\Model; |
19 | 19 | use SWP\Bundle\CoreBundle\Form\Type\ThemeInstallType; |
20 | 20 | use SWP\Bundle\CoreBundle\Form\Type\ThemeUploadType; |
21 | -use SWP\Bundle\CoreBundle\Model\Tenant; |
|
22 | 21 | use SWP\Bundle\CoreBundle\Model\TenantInterface; |
23 | 22 | use SWP\Bundle\CoreBundle\Theme\Helper\ThemeHelper; |
24 | 23 | use SWP\Component\Common\Response\ResourcesListResponseInterface; |