@@ -249,8 +249,8 @@ |
||
| 249 | 249 | } |
| 250 | 250 | |
| 251 | 251 | /** |
| 252 | - * @param $file |
|
| 253 | - * @param $target |
|
| 252 | + * @param string $file |
|
| 253 | + * @param string $target |
|
| 254 | 254 | * @param $classname |
| 255 | 255 | * @param $entityClass |
| 256 | 256 | * @param $serviceNamespace |
@@ -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 | } |