@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | /** |
| 75 | 75 | * Return the url to edit the given $item |
| 76 | 76 | * |
| 77 | - * @param mixed $item |
|
| 77 | + * @param \Kunstmaan\FormBundle\Tests\Entity\FakePage $item |
|
| 78 | 78 | * |
| 79 | 79 | * @return array |
| 80 | 80 | */ |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | /** |
| 125 | 125 | * Configure if it's possible to delete the given $item |
| 126 | 126 | * |
| 127 | - * @param mixed $item |
|
| 127 | + * @param \Kunstmaan\FormBundle\Tests\Entity\FakePage $item |
|
| 128 | 128 | * |
| 129 | 129 | * @return bool |
| 130 | 130 | */ |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | /** |
| 148 | 148 | * Get the delete url for the given $item |
| 149 | 149 | * |
| 150 | - * @param mixed $item |
|
| 150 | + * @param \Kunstmaan\FormBundle\Tests\Entity\FakePage $item |
|
| 151 | 151 | * |
| 152 | 152 | * @return array |
| 153 | 153 | */ |
@@ -61,7 +61,6 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * The constructor for this service |
| 63 | 63 | * |
| 64 | - * @param ContainerInterface $container |
|
| 65 | 64 | */ |
| 66 | 65 | public function __construct( |
| 67 | 66 | /* DomainConfigurationInterface */ $domainConfiguration, |
@@ -283,6 +282,7 @@ discard block |
||
| 283 | 282 | } |
| 284 | 283 | |
| 285 | 284 | /** |
| 285 | + * @param string $host |
|
| 286 | 286 | * @return boolean |
| 287 | 287 | */ |
| 288 | 288 | protected function isMultiLanguage($host = null) |
@@ -13,6 +13,7 @@ discard block |
||
| 13 | 13 | * Bind current request. |
| 14 | 14 | * |
| 15 | 15 | * @param Request $request |
| 16 | + * @return void |
|
| 16 | 17 | */ |
| 17 | 18 | public function bindRequest(Request $request); |
| 18 | 19 | |
@@ -22,7 +23,7 @@ discard block |
||
| 22 | 23 | public function getLimit(); |
| 23 | 24 | |
| 24 | 25 | /** |
| 25 | - * @return array |
|
| 26 | + * @return integer[] |
|
| 26 | 27 | */ |
| 27 | 28 | public function getLimitOptions(); |
| 28 | 29 | } |
| 29 | 30 | \ No newline at end of file |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | return $this->limit; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - /** @return array */ |
|
| 81 | + /** @return integer[] */ |
|
| 82 | 82 | public function getLimitOptions() |
| 83 | 83 | { |
| 84 | 84 | return [ |
@@ -50,6 +50,9 @@ |
||
| 50 | 50 | $container->getDefinition('kunstmaan_translator.datacollector')->setDecoratedService('translator'); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param ContainerBuilder $container |
|
| 55 | + */ |
|
| 53 | 56 | public function setTranslationConfiguration($config, $container) |
| 54 | 57 | { |
| 55 | 58 | $container->setAlias('translator', 'kunstmaan_translator.service.translator.translator')->setPublic(true); |
@@ -38,7 +38,6 @@ |
||
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * @param EntityManagerInterface|null $em |
| 41 | - * @param PdfTransformer|null $mediaManager |
|
| 42 | 41 | */ |
| 43 | 42 | public function __construct(/* EntityManagerInterface */ $em = null, /* PdfTransformer */ $pdfTransformer = null, $rootDir = null, $enablePdfPreview = null) |
| 44 | 43 | { |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | * |
| 76 | 76 | * @param string $role ROLE_FOO etc |
| 77 | 77 | * |
| 78 | - * @return RoleInterface |
|
| 78 | + * @return Role |
|
| 79 | 79 | */ |
| 80 | 80 | public function setRole($role) |
| 81 | 81 | { |
@@ -754,7 +754,7 @@ |
||
| 754 | 754 | * |
| 755 | 755 | * @param Request $request |
| 756 | 756 | * |
| 757 | - * @return string |
|
| 757 | + * @return JsonResponse |
|
| 758 | 758 | * @throws AccessDeniedException |
| 759 | 759 | */ |
| 760 | 760 | public function reorderAction(Request $request) |
@@ -8,13 +8,10 @@ discard block |
||
| 8 | 8 | use InvalidArgumentException; |
| 9 | 9 | use Kunstmaan\AdminBundle\Entity\BaseUser; |
| 10 | 10 | use Kunstmaan\AdminBundle\Entity\EntityInterface; |
| 11 | -use Kunstmaan\AdminBundle\Entity\User; |
|
| 12 | 11 | use Kunstmaan\AdminBundle\FlashMessages\FlashTypes; |
| 13 | 12 | use Kunstmaan\AdminBundle\Helper\FormWidgets\FormWidget; |
| 14 | - |
|
| 15 | 13 | use Kunstmaan\AdminBundle\Helper\FormWidgets\Tabs\Tab; |
| 16 | 14 | use Kunstmaan\AdminBundle\Helper\FormWidgets\Tabs\TabPane; |
| 17 | - |
|
| 18 | 15 | use Kunstmaan\AdminBundle\Helper\Security\Acl\AclHelper; |
| 19 | 16 | use Kunstmaan\AdminBundle\Helper\Security\Acl\Permission\PermissionMap; |
| 20 | 17 | use Kunstmaan\AdminBundle\Service\AclManager; |
@@ -43,7 +40,6 @@ discard block |
||
| 43 | 40 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 44 | 41 | use Symfony\Component\HttpFoundation\RedirectResponse; |
| 45 | 42 | use Symfony\Component\HttpFoundation\Request; |
| 46 | -use Symfony\Component\Security\Acl\Model\EntryInterface; |
|
| 47 | 43 | use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; |
| 48 | 44 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; |
| 49 | 45 | use Symfony\Component\Translation\TranslatorInterface; |
@@ -2,18 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Kunstmaan\AdminBundle\Command; |
| 4 | 4 | |
| 5 | -use Doctrine\ORM\EntityManager; |
|
| 6 | 5 | use Doctrine\ORM\EntityManagerInterface; |
| 7 | 6 | use Kunstmaan\AdminBundle\Service\AclManager; |
| 8 | 7 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
| 9 | 8 | use Symfony\Component\Console\Input\InputInterface; |
| 10 | 9 | use Symfony\Component\Console\Output\OutputInterface; |
| 11 | 10 | use Symfony\Component\Console\Question\ChoiceQuestion; |
| 12 | -use Symfony\Component\Security\Acl\Domain\Acl; |
|
| 13 | -use Symfony\Component\Security\Acl\Domain\Entry; |
|
| 14 | -use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; |
|
| 15 | -use Symfony\Component\Security\Acl\Model\MutableAclProviderInterface; |
|
| 16 | -use Symfony\Component\Security\Acl\Model\ObjectIdentityRetrievalStrategyInterface; |
|
| 17 | 11 | use Symfony\Component\Security\Acl\Permission\PermissionMapInterface; |
| 18 | 12 | |
| 19 | 13 | /** |