@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * FormProcessor constructor. |
| 21 | 21 | * |
| 22 | 22 | * @param FormFactoryInterface $factory |
| 23 | - * @param string|FormTypeInterface $form |
|
| 23 | + * @param \Symfony\Component\Form\FormInterface $form |
|
| 24 | 24 | * @param array $options |
| 25 | 25 | */ |
| 26 | 26 | public function __construct(FormFactoryInterface $factory, $form, array $options = []) |
@@ -24,6 +24,9 @@ |
||
| 24 | 24 | $this->mapper = $mapper; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $className |
|
| 29 | + */ |
|
| 27 | 30 | public function createFormForClass($className) |
| 28 | 31 | { |
| 29 | 32 | $form = $this->factory->create(); |
@@ -191,6 +191,9 @@ |
||
| 191 | 191 | return $this->container->getDefinition('cruds.api.router_loader'); |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | + /** |
|
| 195 | + * @param string $name |
|
| 196 | + */ |
|
| 194 | 197 | private function normalize($name) |
| 195 | 198 | { |
| 196 | 199 | return str_replace('-', '_', $name); |
@@ -19,6 +19,10 @@ |
||
| 19 | 19 | $this->doRequest('/api/entity/my-entity/search', 'GET', []); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $path |
|
| 24 | + * @param string $method |
|
| 25 | + */ |
|
| 22 | 26 | private function doRequest($path, $method, array $args = []) |
| 23 | 27 | { |
| 24 | 28 | $client = self::createClient(); |