@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | /** |
| 296 | - * @return Symfony\Component\DependencyInjection\ContainerInterface - the mock of container interface |
|
| 296 | + * @return ContainerInterface - the mock of container interface |
|
| 297 | 297 | */ |
| 298 | 298 | private function getContainer() |
| 299 | 299 | { |
@@ -307,6 +307,9 @@ discard block |
||
| 307 | 307 | return $containerMock; |
| 308 | 308 | } |
| 309 | 309 | |
| 310 | + /** |
|
| 311 | + * @param string $serviceId |
|
| 312 | + */ |
|
| 310 | 313 | private function getItemArray($serviceId) |
| 311 | 314 | { |
| 312 | 315 | return [ |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | /** |
| 127 | 127 | * render a list element from the FieldDescription. |
| 128 | 128 | * |
| 129 | - * @param mixed $object |
|
| 129 | + * @param \stdClass $object |
|
| 130 | 130 | * @param array $params |
| 131 | 131 | * |
| 132 | 132 | * @return string |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | /** |
| 223 | 223 | * render a view element. |
| 224 | 224 | * |
| 225 | - * @param mixed $object |
|
| 225 | + * @param \stdClass $object |
|
| 226 | 226 | * |
| 227 | 227 | * @return string |
| 228 | 228 | */ |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | /** |
| 360 | 360 | * Get the identifiers as a string that is safe to use in a url. |
| 361 | 361 | * |
| 362 | - * @param object $model |
|
| 362 | + * @param \stdClass $model |
|
| 363 | 363 | * |
| 364 | 364 | * @return string string representation of the id that is safe to use in a url |
| 365 | 365 | */ |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | } |
| 382 | 382 | |
| 383 | 383 | /** |
| 384 | - * @return string|bool |
|
| 384 | + * @return string|false |
|
| 385 | 385 | */ |
| 386 | 386 | public function getXEditableType($type) |
| 387 | 387 | { |
@@ -31,14 +31,29 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | interface AdminExtensionInterface |
| 33 | 33 | { |
| 34 | + /** |
|
| 35 | + * @return void |
|
| 36 | + */ |
|
| 34 | 37 | public function configureFormFields(FormMapper $formMapper); |
| 35 | 38 | |
| 39 | + /** |
|
| 40 | + * @return void |
|
| 41 | + */ |
|
| 36 | 42 | public function configureListFields(ListMapper $listMapper); |
| 37 | 43 | |
| 44 | + /** |
|
| 45 | + * @return void |
|
| 46 | + */ |
|
| 38 | 47 | public function configureDatagridFilters(DatagridMapper $datagridMapper); |
| 39 | 48 | |
| 49 | + /** |
|
| 50 | + * @return void |
|
| 51 | + */ |
|
| 40 | 52 | public function configureShowFields(ShowMapper $showMapper); |
| 41 | 53 | |
| 54 | + /** |
|
| 55 | + * @return void |
|
| 56 | + */ |
|
| 42 | 57 | public function configureRoutes(AdminInterface $admin, RouteCollection $collection); |
| 43 | 58 | |
| 44 | 59 | /** |
@@ -49,6 +64,7 @@ discard block |
||
| 49 | 64 | * @param string $action |
| 50 | 65 | * |
| 51 | 66 | * @deprecated |
| 67 | + * @return void |
|
| 52 | 68 | */ |
| 53 | 69 | public function configureSideMenu( |
| 54 | 70 | AdminInterface $admin, |
@@ -61,6 +77,7 @@ discard block |
||
| 61 | 77 | * Builds the tab menu. |
| 62 | 78 | * |
| 63 | 79 | * @param string $action |
| 80 | + * @return void |
|
| 64 | 81 | */ |
| 65 | 82 | public function configureTabMenu( |
| 66 | 83 | AdminInterface $admin, |
@@ -71,11 +88,13 @@ discard block |
||
| 71 | 88 | |
| 72 | 89 | /** |
| 73 | 90 | * @param mixed $object |
| 91 | + * @return void |
|
| 74 | 92 | */ |
| 75 | 93 | public function validate(AdminInterface $admin, ErrorElement $errorElement, $object); |
| 76 | 94 | |
| 77 | 95 | /** |
| 78 | 96 | * @param string $context |
| 97 | + * @return void |
|
| 79 | 98 | */ |
| 80 | 99 | public function configureQuery(AdminInterface $admin, ProxyQueryInterface $query, $context = 'list'); |
| 81 | 100 | |
@@ -83,6 +102,7 @@ discard block |
||
| 83 | 102 | * Get a chance to modify a newly created instance. |
| 84 | 103 | * |
| 85 | 104 | * @param mixed $object |
| 105 | + * @return void |
|
| 86 | 106 | */ |
| 87 | 107 | public function alterNewInstance(AdminInterface $admin, $object); |
| 88 | 108 | |
@@ -90,6 +110,7 @@ discard block |
||
| 90 | 110 | * Get a chance to modify object instance. |
| 91 | 111 | * |
| 92 | 112 | * @param mixed $object |
| 113 | + * @return void |
|
| 93 | 114 | */ |
| 94 | 115 | public function alterObject(AdminInterface $admin, $object); |
| 95 | 116 | |
@@ -130,31 +151,37 @@ discard block |
||
| 130 | 151 | |
| 131 | 152 | /** |
| 132 | 153 | * @param mixed $object |
| 154 | + * @return void |
|
| 133 | 155 | */ |
| 134 | 156 | public function preUpdate(AdminInterface $admin, $object); |
| 135 | 157 | |
| 136 | 158 | /** |
| 137 | 159 | * @param mixed $object |
| 160 | + * @return void |
|
| 138 | 161 | */ |
| 139 | 162 | public function postUpdate(AdminInterface $admin, $object); |
| 140 | 163 | |
| 141 | 164 | /** |
| 142 | 165 | * @param mixed $object |
| 166 | + * @return void |
|
| 143 | 167 | */ |
| 144 | 168 | public function prePersist(AdminInterface $admin, $object); |
| 145 | 169 | |
| 146 | 170 | /** |
| 147 | 171 | * @param mixed $object |
| 172 | + * @return void |
|
| 148 | 173 | */ |
| 149 | 174 | public function postPersist(AdminInterface $admin, $object); |
| 150 | 175 | |
| 151 | 176 | /** |
| 152 | 177 | * @param mixed $object |
| 178 | + * @return void |
|
| 153 | 179 | */ |
| 154 | 180 | public function preRemove(AdminInterface $admin, $object); |
| 155 | 181 | |
| 156 | 182 | /** |
| 157 | 183 | * @param mixed $object |
| 184 | + * @return void |
|
| 158 | 185 | */ |
| 159 | 186 | public function postRemove(AdminInterface $admin, $object); |
| 160 | 187 | |
@@ -257,6 +257,9 @@ discard block |
||
| 257 | 257 | return $datagrid; |
| 258 | 258 | } |
| 259 | 259 | |
| 260 | + /** |
|
| 261 | + * @param string $field |
|
| 262 | + */ |
|
| 260 | 263 | private function configureFormConfig($field, $disabled = false) |
| 261 | 264 | { |
| 262 | 265 | $form = $this->prophesize(Form::class); |
@@ -276,6 +279,9 @@ discard block |
||
| 276 | 279 | $formConfig->getAttribute('target_admin_access_action')->willReturn('list'); |
| 277 | 280 | } |
| 278 | 281 | |
| 282 | + /** |
|
| 283 | + * @param string $field |
|
| 284 | + */ |
|
| 279 | 285 | private function configureFormConfigComplexProperty($field) |
| 280 | 286 | { |
| 281 | 287 | $form = $this->prophesize(Form::class); |
@@ -295,6 +301,9 @@ discard block |
||
| 295 | 301 | $formConfig->getAttribute('target_admin_access_action')->willReturn('list'); |
| 296 | 302 | } |
| 297 | 303 | |
| 304 | + /** |
|
| 305 | + * @param string $field |
|
| 306 | + */ |
|
| 298 | 307 | private function configureFormConfigComplexPropertyArray($field) |
| 299 | 308 | { |
| 300 | 309 | $form = $this->prophesize(Form::class); |
@@ -257,6 +257,9 @@ discard block |
||
| 257 | 257 | return $datagrid; |
| 258 | 258 | } |
| 259 | 259 | |
| 260 | + /** |
|
| 261 | + * @param string $field |
|
| 262 | + */ |
|
| 260 | 263 | private function configureFormConfig($field, $disabled = false) |
| 261 | 264 | { |
| 262 | 265 | $form = $this->prophesize(Form::class); |
@@ -276,6 +279,9 @@ discard block |
||
| 276 | 279 | $formConfig->getAttribute('target_admin_access_action')->willReturn('list'); |
| 277 | 280 | } |
| 278 | 281 | |
| 282 | + /** |
|
| 283 | + * @param string $field |
|
| 284 | + */ |
|
| 279 | 285 | private function configureFormConfigComplexProperty($field) |
| 280 | 286 | { |
| 281 | 287 | $form = $this->prophesize(Form::class); |
@@ -295,6 +301,9 @@ discard block |
||
| 295 | 301 | $formConfig->getAttribute('target_admin_access_action')->willReturn('list'); |
| 296 | 302 | } |
| 297 | 303 | |
| 304 | + /** |
|
| 305 | + * @param string $field |
|
| 306 | + */ |
|
| 298 | 307 | private function configureFormConfigComplexPropertyArray($field) |
| 299 | 308 | { |
| 300 | 309 | $form = $this->prophesize(Form::class); |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sonata\AdminBundle\DependencyInjection\Compiler; |
| 13 | 13 | |
| 14 | -use Sonata\AdminBundle\Admin\AdminExtensionInterface as OldAdminExtensionInterface; |
|
| 15 | 14 | use Sonata\AdminBundle\Admin\AdminExtensionInterface as NewAdminExtensionInterface; |
| 16 | 15 | use Sonata\AdminBundle\Extension\ExtensionEmitter; |
| 17 | 16 | use Sonata\AdminBundle\Extension\ExtensionNotifier; |