@@ -40,6 +40,7 @@ |
||
40 | 40 | |
41 | 41 | /** |
42 | 42 | * {@inheritdoc} |
43 | + * @param string $entity |
|
43 | 44 | */ |
44 | 45 | public function generate(BundleInterface $bundle, $entity, ClassMetadataInfo $metadata, $forceOverwrite = false) |
45 | 46 | { |
@@ -90,7 +90,7 @@ |
||
90 | 90 | $questionHelper->writeSection($output, 'REST generation'); |
91 | 91 | |
92 | 92 | try { |
93 | - $entityClass = $this->getContainer()->get('doctrine')->getAliasNamespace($bundle).'\\'.$entity; |
|
93 | + $entityClass = $this->getContainer()->get('doctrine')->getAliasNamespace($bundle) . '\\' . $entity; |
|
94 | 94 | $metadata = $this->getEntityMetadata($entityClass); |
95 | 95 | } catch (\Exception $e) { |
96 | 96 | throw new \RuntimeException(sprintf('Entity "%s" does not exist in the "%s" bundle. Create it with the "doctrine:generate:entity" command and then execute this command again.', $entity, $bundle)); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $configuration = new Configuration(); |
23 | 23 | $this->processConfiguration($configuration, $configs); |
24 | 24 | |
25 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
25 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
26 | 26 | $loader->load('services.yml'); |
27 | 27 | } |
28 | 28 | } |
@@ -33,6 +33,10 @@ discard block |
||
33 | 33 | $this->rootDir = $rootDir; |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $entity |
|
38 | + * @param string $format |
|
39 | + */ |
|
36 | 40 | public function generate(BundleInterface $bundle, $entity, ClassMetadataInfo $metadata, $format, $forceOverwrite) |
37 | 41 | { |
38 | 42 | if (count($metadata->identifier) != 1) { |
@@ -155,8 +159,8 @@ discard block |
||
155 | 159 | } |
156 | 160 | |
157 | 161 | /** |
158 | - * @param $file |
|
159 | - * @param $target |
|
162 | + * @param string $file |
|
163 | + * @param string $target |
|
160 | 164 | * @param $classname |
161 | 165 | * @param $entityClass |
162 | 166 | * @param $serviceNamespace |